Skip to content

Commit

Permalink
Revert "replace npx with yarn and other changes"
Browse files Browse the repository at this point in the history
This reverts commit 67aec59.
  • Loading branch information
danielpza committed Aug 6, 2024
1 parent 67aec59 commit 7d74f10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions test/projects/nx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"name": "nx",
"version": "0.0.0",
"scripts": {
"build": "nx build library1 --skip-nx-cache"
"build": "npx nx build library1 --skip-nx-cache"
},
"private": true,
"devDependencies": {
"nx": "^15.0.0",
"typescript-transform-paths": "link:../../../"
}
}
4 changes: 2 additions & 2 deletions test/tests/extras.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ describe(`Extra Tests`, () => {

describe(`ts-node register script`, () => {
test(`Works with --transpileOnly`, () => {
const res = execSync("yarn ts-node --transpileOnly src/index.ts", { cwd: projectRoot }).toString();
const res = execSync("npx ts-node --transpileOnly src/index.ts", { cwd: projectRoot }).toString();
expect(stripAnsi(res)).toMatch(/^null($|\r?\n)/m);
});

test(`Works with --typeCheck`, () => {
const res = execSync("yarn ts-node --typeCheck src/index.ts", { cwd: projectRoot }).toString();
const res = execSync("npx ts-node --typeCheck src/index.ts", { cwd: projectRoot }).toString();
expect(stripAnsi(res)).toMatch(/^null($|\r?\n)/);
});
});
Expand Down
1 change: 0 additions & 1 deletion test/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7016,7 +7016,6 @@ __metadata:
version: 0.0.0-use.local
resolution: "nx@workspace:projects/nx"
dependencies:
nx: "npm:^15.0.0"
typescript-transform-paths: "link:../../../"
languageName: unknown
linkType: soft
Expand Down

0 comments on commit 7d74f10

Please sign in to comment.