File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
'use strict'
3
3
4
4
const constants = require ( '../dist/constants' )
5
- const shadowBin = require ( `../dist/ ${ constants . DIST_TYPE } /shadow-bin.js` )
5
+ const shadowBin = require ( `${ constants . distPath } /shadow-bin.js` )
6
6
shadowBin ( 'npm' )
Original file line number Diff line number Diff line change 2
2
'use strict'
3
3
4
4
const constants = require ( '../dist/constants' )
5
- const shadowBin = require ( `../dist/ ${ constants . DIST_TYPE } /shadow-bin.js` )
5
+ const shadowBin = require ( `${ constants . distPath } /shadow-bin.js` )
6
6
shadowBin ( 'npx' )
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import type { CliSubcommand } from '../utils/meow-with-subcommands'
5
5
export const npm : CliSubcommand = {
6
6
description : 'npm wrapper functionality' ,
7
7
async run ( argv ) {
8
- // Lazily access constants.DIST_TYPE .
9
- const shadowBin = require ( `../dist/ ${ constants . DIST_TYPE } /shadow-bin.js` )
8
+ // Lazily access constants.distPath .
9
+ const shadowBin = require ( `${ constants . distPath } /shadow-bin.js` )
10
10
await shadowBin ( 'npm' , argv )
11
11
}
12
12
}
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import type { CliSubcommand } from '../utils/meow-with-subcommands'
5
5
export const npx : CliSubcommand = {
6
6
description : 'npx wrapper functionality' ,
7
7
async run ( argv ) {
8
- // Lazily access constants.DIST_TYPE .
9
- const shadowBin = require ( `../dist/ ${ constants . DIST_TYPE } /shadow-bin.js` )
8
+ // Lazily access constants.distPath .
9
+ const shadowBin = require ( `${ constants . distPath } /shadow-bin.js` )
10
10
await shadowBin ( 'npx' , argv )
11
11
}
12
12
}
You can’t perform that action at this time.
0 commit comments