Skip to content
Snippets Groups Projects
Commit 34d7ca66 authored by Marcus Schiesser's avatar Marcus Schiesser
Browse files

improved publish scripts

parent 17a803bb
Branches
Tags
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"build": "turbo run build", "build": "turbo run build",
"build:release": "turbo run build lint test --filter=\"!docs\"",
"dev": "turbo run dev", "dev": "turbo run dev",
"format": "prettier --ignore-unknown --cache --check .", "format": "prettier --ignore-unknown --cache --check .",
"format:write": "prettier --ignore-unknown --write .", "format:write": "prettier --ignore-unknown --write .",
...@@ -9,8 +10,9 @@ ...@@ -9,8 +10,9 @@
"prepare": "husky install", "prepare": "husky install",
"test": "turbo run test", "test": "turbo run test",
"type-check": "tsc -b --diagnostics", "type-check": "tsc -b --diagnostics",
"new-version": "turbo run build lint test --filter=\"!docs\" && changeset version", "release": "pnpm run build:release && changeset publish",
"new-snapshot": "turbo run build lint test --filter=\"!docs\" && changeset version --snapshot" "new-version": "pnpm run build:release && changeset version",
"new-snapshot": "pnpm run build:release && changeset version --snapshot"
}, },
"devDependencies": { "devDependencies": {
"@changesets/cli": "^2.27.1", "@changesets/cli": "^2.27.1",
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
"build": "npm run clean && ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register", "build": "npm run clean && ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register",
"lint": "eslint . --ignore-pattern dist", "lint": "eslint . --ignore-pattern dist",
"e2e": "playwright test", "e2e": "playwright test",
"prepublishOnly": "cd ../../ && turbo run build" "prepublishOnly": "cd ../../ && pnpm run build:release"
}, },
"devDependencies": { "devDependencies": {
"@playwright/test": "^1.40.0", "@playwright/test": "^1.40.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment