From 9221a23b08350b06fb6d43e6fb091c3176ab3e5c Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin Date: Mon, 2 Oct 2023 11:58:15 +0800 Subject: [PATCH] build: update publish script --- packages/compiler/package.json | 2 +- packages/hexo-renderer-typst/package.json | 2 +- packages/renderer/package.json | 2 +- packages/typst.angular/package.json | 2 +- packages/typst.react/package.json | 2 +- packages/typst.ts/package.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/compiler/package.json b/packages/compiler/package.json index 76197b68..a2c2710f 100644 --- a/packages/compiler/package.json +++ b/packages/compiler/package.json @@ -24,7 +24,7 @@ "build": "wasm-pack build --target web --scope myriaddreamin -- --no-default-features --features web && node ../tools/wasm-debundle.mjs", "prepublish": "turbo build", "publish:dry": "npm publish --dry-run --access public", - "publish:lib": "npm publish --access public", + "publish:lib": "npm publish --access public || exit 0", "test:chrome": "wasm-pack test --chrome --headless --release", "test:firefox": "wasm-pack test --firefox --headless --release" }, diff --git a/packages/hexo-renderer-typst/package.json b/packages/hexo-renderer-typst/package.json index 7d4285d5..09368394 100644 --- a/packages/hexo-renderer-typst/package.json +++ b/packages/hexo-renderer-typst/package.json @@ -26,7 +26,7 @@ "devDependencies": {}, "scripts": { "publish:dry": "npm publish --dry-run", - "publish:lib": "npm publish" + "publish:lib": "npm publish || exit 0" }, "engines": { "node": ">=12" diff --git a/packages/renderer/package.json b/packages/renderer/package.json index a7574711..fd96ffd0 100644 --- a/packages/renderer/package.json +++ b/packages/renderer/package.json @@ -24,7 +24,7 @@ "build": "wasm-pack build --target web --scope myriaddreamin -- --no-default-features --features web && node ../tools/wasm-debundle.mjs", "prepublish": "turbo build", "publish:dry": "npm publish --dry-run --access public", - "publish:lib": "npm publish --access public", + "publish:lib": "npm publish --access public || exit 0", "test:chrome:verbose": "wasm-pack test --chrome --headless --release --features web_verbose", "test:firefox:verbose": "wasm-pack test --firefox --headless --release --features web_verbose", "test:chrome": "wasm-pack test --chrome --headless --release", diff --git a/packages/typst.angular/package.json b/packages/typst.angular/package.json index 488eef38..6a920428 100644 --- a/packages/typst.angular/package.json +++ b/packages/typst.angular/package.json @@ -9,7 +9,7 @@ "watch": "ng build --watch --configuration development", "test": "ng test --watch=false", "publish:dry": "cd dist/typst.angular && npm publish --dry-run --access public", - "publish:lib": "cd dist/typst.angular && npm publish --access public", + "publish:lib": "cd dist/typst.angular && npm publish --access public || exit 0", "lint": "ng lint" }, "private": true, diff --git a/packages/typst.react/package.json b/packages/typst.react/package.json index b9a5d3e7..d017200b 100644 --- a/packages/typst.react/package.json +++ b/packages/typst.react/package.json @@ -35,7 +35,7 @@ "format": "prettier --write \"./src/**/*.{js,jsx,ts,tsx,json,css,scss,md}\"", "test": "exit 0", "publish:dry": "npm publish --dry-run --access public", - "publish:lib": "npm publish --access public" + "publish:lib": "npm publish --access public || exit 0" }, "peerDependencies": { "react": "^17.0.1", diff --git a/packages/typst.ts/package.json b/packages/typst.ts/package.json index 48d530da..9fc9460e 100644 --- a/packages/typst.ts/package.json +++ b/packages/typst.ts/package.json @@ -34,7 +34,7 @@ "build:dev": "node scripts/mkdir.mjs && tsc -p ./tsconfig.lib.json && tsc -p ./tsconfig.cjs.json && node scripts/fix-cjs.mjs && esbuild.config.mjs commonjs && node esbuild.config.mjs", "prepublish": "turbo build", "publish:dry": "npm publish --dry-run --access public", - "publish:lib": "npm publish --access public" + "publish:lib": "npm publish --access public || exit 0" }, "dependencies": { "idb": "^7.1.1"