diff --git a/package.json b/package.json index dd9025d..bc617ff 100644 --- a/package.json +++ b/package.json @@ -78,8 +78,8 @@ "build:examples": "pnpm run precompile:examples; vite build --config examples/vite.config.js", "preview:examples": "vite preview --config examples/vite.config.js --host", "copy-dist-pkg": "cp -r ./dist ./dist/dist && cp ./LICENSE ./dist/LICENSE && cp ./package.json ./dist/package.json && cp ./pnpm-lock.yaml ./dist/pnpm-lock.yaml", - "prepub": "rm -r ./dist && pnpm run precompile:examples && pnpm run build:lib && pnpm run build:examples && pnpm run test && pnpm run copy-dist-pkg", - "pub": "np --no-tests --no-publish && pnpm publish ./dist", + "prepub": "(rm -r ./dist || true) && pnpm run precompile:examples && pnpm run build:lib && pnpm run build:examples && pnpm run test", + "pub": "np --no-tests --no-publish && pnpm run copy-dist-pkg && pnpm publish ./dist", "postpub": "rm -r ./dist", "pub-preview": "np --preview" },