Skip to content

Commit ba3bc71

Browse files
etroynovWikiRik
andauthored
Replace global process with local module (#1141)
* chore(small-refactor): replace global process with local module * chore(small-refactor): change import syntax * chore(small-refactor): fix node version in CI * chore(small-refactor): bump node version 10 -> 16 * chore(small-refactor): correct node matrix on CI * chore(small-refactor): downgrade node version 16 -> 10 * Update package.json Co-authored-by: Rik Smale <13023439+WikiRik@users.noreply.github.com> * revert(small-refactor): revert yarn.lock file changes Co-authored-by: Rik Smale <13023439+WikiRik@users.noreply.github.com>
1 parent 1a7f8a5 commit ba3bc71

20 files changed

+21
-2
lines changed

src/assets/models/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
const fs = require('fs');
44
const path = require('path');
55
const Sequelize = require('sequelize');
6+
const process = require('process');
67
const basename = path.basename(__filename);
78
const env = process.env.NODE_ENV || 'development';
89
const config = require(<%= configFile %>)[env];

src/commands/database.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions } from '../core/yargs';
23
import { logMigrator } from '../core/migrator';
34

src/commands/init.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions } from '../core/yargs';
23
import helpers from '../helpers';
34

src/commands/migrate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions } from '../core/yargs';
23
import {
34
getMigrator,

src/commands/migrate_undo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions } from '../core/yargs';
23
import { getMigrator, ensureCurrentMetaSchema } from '../core/migrator';
34

src/commands/migrate_undo_all.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions } from '../core/yargs';
23
import { getMigrator, ensureCurrentMetaSchema } from '../core/migrator';
34

src/commands/migration_generate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions, _underscoreOption } from '../core/yargs';
23

34
import helpers from '../helpers';

src/commands/model_generate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions, _underscoreOption } from '../core/yargs';
23

34
import helpers from '../helpers';

src/commands/seed.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import _ from 'lodash';
2+
import process from 'process';
13
import { _baseOptions } from '../core/yargs';
24
import { getMigrator } from '../core/migrator';
35

46
import helpers from '../helpers';
5-
import _ from 'lodash';
67

78
exports.builder = (yargs) => _baseOptions(yargs).argv;
89
exports.handler = async function (args) {

src/commands/seed_generate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'process';
12
import { _baseOptions } from '../core/yargs';
23

34
import helpers from '../helpers';

0 commit comments

Comments
 (0)