@@ -11,7 +11,7 @@ import {
11
11
} from '../../generators/tree' ;
12
12
import { writeJson } from '../../generators/utils/json' ;
13
13
14
- const nxWrapperPath = ( p : typeof import ( 'path' ) = path ) =>
14
+ export const nxWrapperPath = ( p : typeof import ( 'path' ) = path ) =>
15
15
p . join ( '.nx' , 'nxw.js' ) ;
16
16
17
17
const NODE_MISSING_ERR =
@@ -36,7 +36,7 @@ export function generateEncapsulatedNxSetup(version?: string) {
36
36
const host = new FsTree ( process . cwd ( ) , false ) ;
37
37
writeMinimalNxJson ( host , version ) ;
38
38
updateGitIgnore ( host ) ;
39
- host . write ( nxWrapperPath ( ) , getNodeScriptContents ( ) ) ;
39
+ host . write ( nxWrapperPath ( ) , getNxWrapperContents ( ) ) ;
40
40
host . write ( 'nx.bat' , BATCH_SCRIPT_CONTENTS ) ;
41
41
host . write ( 'nx' , SHELL_SCRIPT_CONTENTS , {
42
42
mode : FsConstants . S_IXUSR | FsConstants . S_IRUSR | FsConstants . S_IWUSR ,
@@ -75,7 +75,7 @@ export function updateGitIgnore(host: Tree) {
75
75
) ;
76
76
}
77
77
78
- function getNodeScriptContents ( ) {
78
+ export function getNxWrapperContents ( ) {
79
79
// Read nxw.js, but remove any empty comments or comments that start with `//#: `
80
80
// This removes the sourceMapUrl since it is invalid, as well as any internal comments.
81
81
return readFileSync ( path . join ( __dirname , 'nxw.js' ) , 'utf-8' ) . replace (
1 commit comments
vercel[bot] commentedon Mar 1, 2023
Successfully deployed to the following URLs:
nx-dev – ./
nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev