File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 6
6
"types" : " types/index.d.ts" ,
7
7
"scripts" : {
8
8
"compile" : " tsc" ,
9
- "build" : " yarn run clean && yarn run compile" ,
9
+ "build" : " yarn clean && yarn compile" ,
10
10
"test" : " jest" ,
11
11
"release" : " standard-version" ,
12
12
"--------------" : " " ,
13
13
"format" : " prettier --write ." ,
14
- "clean" : " npx -y rimraf -g dist **/*.tsbuildinfo ./test/projects/nx/dist" ,
15
- "clean:all" : " yarn run clean && npx -y rimraf -g node_modules **/node_modules **/yarn.lock yarn.lock" ,
16
- "reset" : " yarn run clean:all && yarn install && yarn build" ,
14
+ "clean" : " rimraf -g dist **/*.tsbuildinfo ./test/projects/nx/dist" ,
15
+ "clean:all" : " yarn clean && rimraf -g node_modules \" **/node_modules\" \" **/yarn.lock\" yarn.lock" ,
16
+ "reset" : " yarn clean:all && yarn install && yarn build" ,
17
17
"-------------- " : " " ,
18
- "prebuild" : " npx -y rimraf -g dist" ,
18
+ "prebuild" : " rimraf -g dist" ,
19
19
"install:tests" : " cd test && yarn install" ,
20
- "prepare" : " yarn run install:tests"
20
+ "prepare" : " yarn install:tests"
21
21
},
22
22
"keywords" : [
23
23
" typescript" ,
Original file line number Diff line number Diff line change 2
2
"name" : " nx" ,
3
3
"version" : " 0.0.0" ,
4
4
"scripts" : {
5
- "build" : " npx nx build library1 --skip-nx-cache"
5
+ "build" : " yarn nx build library1 --skip-nx-cache"
6
6
},
7
7
"private" : true ,
8
8
"dependencies" : {},
Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ describe(`Extra Tests`, () => {
36
36
37
37
describe ( `ts-node register script` , ( ) => {
38
38
test ( `Works with --transpileOnly` , ( ) => {
39
- const res = execSync ( "npx ts-node --transpileOnly src/index.ts" , { cwd : projectRoot } ) . toString ( ) ;
39
+ const res = execSync ( "yarn ts-node --transpileOnly src/index.ts" , { cwd : projectRoot } ) . toString ( ) ;
40
40
expect ( stripAnsi ( res ) ) . toMatch ( / ^ n u l l ( $ | \r ? \n ) / m) ;
41
41
} ) ;
42
42
43
43
test ( `Works with --typeCheck` , ( ) => {
44
- const res = execSync ( "npx ts-node --typeCheck src/index.ts" , { cwd : projectRoot } ) . toString ( ) ;
44
+ const res = execSync ( "yarn ts-node --typeCheck src/index.ts" , { cwd : projectRoot } ) . toString ( ) ;
45
45
expect ( stripAnsi ( res ) ) . toMatch ( / ^ n u l l ( $ | \r ? \n ) / ) ;
46
46
} ) ;
47
47
} ) ;
You can’t perform that action at this time.
0 commit comments