Skip to content

Commit f9cdd6c

Browse files
committed
replace npx with yarn
1 parent faedb50 commit f9cdd6c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
"types": "types/index.d.ts",
77
"scripts": {
88
"compile": "tsc",
9-
"build": "yarn run clean && yarn run compile",
9+
"build": "yarn clean && yarn compile",
1010
"test": "jest",
1111
"release": "standard-version",
1212
"--------------": "",
1313
"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",
1717
"-------------- ": "",
18-
"prebuild": "npx -y rimraf -g dist",
18+
"prebuild": "rimraf -g dist",
1919
"install:tests": "cd test && yarn install",
20-
"prepare": "yarn run install:tests"
20+
"prepare": "yarn install:tests"
2121
},
2222
"keywords": [
2323
"typescript",

test/projects/nx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nx",
33
"version": "0.0.0",
44
"scripts": {
5-
"build": "npx nx build library1 --skip-nx-cache"
5+
"build": "yarn nx build library1 --skip-nx-cache"
66
},
77
"private": true,
88
"dependencies": {},

test/tests/extras.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ describe(`Extra Tests`, () => {
3636

3737
describe(`ts-node register script`, () => {
3838
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();
4040
expect(stripAnsi(res)).toMatch(/^null($|\r?\n)/m);
4141
});
4242

4343
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();
4545
expect(stripAnsi(res)).toMatch(/^null($|\r?\n)/);
4646
});
4747
});

0 commit comments

Comments
 (0)