Skip to content

Commit

Permalink
vx: use context named import
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Nov 10, 2021
1 parent d96f428 commit b3e2714
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 3 additions & 1 deletion vx/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const glob = require('glob');
const { hideBin } = require('yargs/helpers');
const yargs = require('yargs/yargs');

const genTsConfig = require('./scripts/genTsConfig');

const logger = require('vx/logger');
const packageNames = require('vx/packageNames');
const joinTruthy = require('vx/util/joinTruthy');
Expand All @@ -28,7 +30,7 @@ const commands = glob
{}
);

require('./scripts/genTsConfig');
genTsConfig();

const argv = hideBin(process.argv);

Expand Down
2 changes: 1 addition & 1 deletion vx/vxContext.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const createContext = require('context').default;
const { createContext } = require('context');

const ctx = createContext();

Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2211,11 +2211,6 @@ concat-map@0.0.1:
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=

context@^1.1.4:
version "1.1.4"
resolved "https://registry.yarnpkg.com/context/-/context-1.1.4.tgz#5ff24e5f13b2a64114ad6abfb9d2dc9ba9faf630"
integrity sha512-LBiS1IKHyJWhpzu0on/0L4W0DbnDFtWNkWU7Qo37CJ4rSi/9IqjF3Uw+i94x06H+r32Bs3qq46KkXLI9WEWSIg==

convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0:
version "1.8.0"
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.8.0.tgz#f3373c32d21b4d780dd8004514684fb791ca4369"
Expand Down

0 comments on commit b3e2714

Please sign in to comment.