Skip to content

Commit

Permalink
chore: disable npmjs proxy for local packages (verdaccio`)
Browse files Browse the repository at this point in the history
`0.0.0-e2e` was accidentally published to NPM, so we must not proxy our local packages to avoid conflicts
  • Loading branch information
tinesoft committed Mar 28, 2024
1 parent 7316a21 commit 720a82b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .verdaccio/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ uplinks:
maxage: 60m

packages:
'@nxrocks/*':
access: $all
publish: $all
# proxy: npmjs <-- disable this, because version `0.0.0-e2e` of `@nxrocks/*` packages was accidentally published to NPM 🤦🏿‍♂️ (it makes no sense to proxy them anyway)

'**':
# give all users (including non-authenticated users) full access
# because it is a local registry
access: $all
publish: $all
unpublish: $all

# if package is not available locally, proxy requests to npm registry
proxy: npmjs

Expand Down
6 changes: 3 additions & 3 deletions tools/scripts/start-local-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export default async () => {
gitCommit: false,
gitTag: false,
firstRelease: true,
//generatorOptionsOverrides: {
// skipLockFileUpdate: true,
//},
generatorOptionsOverrides: {
skipLockFileUpdate: true,
},
});
await releasePublish({
tag: 'e2e',
Expand Down
19 changes: 19 additions & 0 deletions unpublish
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
npm login

npm unpublish create-nx-spring-boot@"$1" --force --verbose
npm unpublish create-nx-micronaut@"$1" --force --verbose
npm unpublish create-nx-quarkus@"$1" --force --verbose
npm unpublish create-nx-flutter@"$1" --force --verbose
npm unpublish create-nx-ktor@"$1" --force --verbose

npm unpublish @nxrocks/nx-spring-boot@"$1" --force --verbose
npm unpublish @nxrocks/nx-micronaut@"$1" --force --verbose
npm unpublish @nxrocks/nx-quarkus@"$1" --force --verbose
npm unpublish @nxrocks/nx-ktor@"$1" --force --verbose
npm unpublish @nxrocks/nx-flutter@"$1" --force --verbose
npm unpublish @nxrocks/nx-melos@"$1" --force --verbose

npm unpublish @nxrocks/common-jvm@"$1" --force --verbose
npm unpublish @nxrocks/common-cli@"$1" --force --verbose

npm unpublish @nxrocks/common@"$1" --force --verbose

0 comments on commit 720a82b

Please sign in to comment.