Skip to content

Commit 271f6e4

Browse files
committed
test: use ngx-deploy-npm to publish the package to the local registry
1 parent 7307d59 commit 271f6e4

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

packages/ngx-deploy-npm/project.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,6 @@
114114
"command": "node ./tools/create-nx-workspace.js"
115115
},
116116
"dependsOn": ["yalc-it"]
117-
},
118-
"nx-release-publish": {
119-
"options": {
120-
"packageRoot": "dist/packages/ngx-deploy-npm"
121-
}
122117
}
123118
},
124119
"tags": []

tools/scripts/start-local-registry.ts

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* It is meant to be called in jest's globalSetup.
44
*/
55
import { startLocalRegistry } from '@nx/js/plugins/jest/local-registry';
6-
import { releasePublish, releaseVersion } from 'nx/release';
6+
import { execSync } from 'child_process';
77

88
export default async () => {
99
// local registry target to run
@@ -17,18 +17,7 @@ export default async () => {
1717
verbose: false,
1818
});
1919

20-
await releaseVersion({
21-
specifier: '0.0.0-e2e',
22-
stageChanges: false,
23-
gitCommit: false,
24-
gitTag: false,
25-
firstRelease: true,
26-
generatorOptionsOverrides: {
27-
skipLockFileUpdate: true,
28-
},
29-
});
30-
await releasePublish({
31-
tag: 'e2e',
32-
firstRelease: true,
33-
});
20+
execSync(
21+
'npx nx deploy ngx-deploy-npm --registry=http://localhost:4873 --packageVersion=0.0.0 --tag e2e'
22+
);
3423
};

0 commit comments

Comments
 (0)