chore: add changeset to pkg.json scripts (so npm users don't have to use npx)

This commit is contained in:
Thijs Louisse 2022-11-17 10:56:27 +01:00 committed by Thomas Allmer
parent d6d3810f7c
commit df0d22803c

View file

@ -5,6 +5,7 @@
"scripts": {
"build": "rocket build",
"bundlesize": "rollup -c bundlesize/rollup.config.js && bundlesize",
"changeset": "changeset",
"custom-elements-manifest": "npm run custom-elements-manifest --workspaces --if-present",
"debug": "web-test-runner --watch --config web-test-runner-chrome.config.mjs",
"debug:firefox": "web-test-runner --watch --config web-test-runner-firefox.config.mjs",
@ -14,10 +15,10 @@
"format:prettier": "prettier \"**/*.{js,md}\" \"packages/*/package.json\" \"package.json\" --write",
"postinstall": "npx patch-package && npm run custom-elements-manifest",
"lint": "run-p lint:*",
"lint:types": "npm run types",
"lint:eslint": "eslint --ext .js,.html .",
"lint:markdownlint": "git ls-files '*.md' | xargs markdownlint --ignore '{.github/**/*.md,.changeset/*.md,**/CHANGELOG.md,packages/ui/_legacy-changelogs/*.md}'",
"lint:prettier": "prettier \"**/*.js\" --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)",
"lint:types": "npm run types",
"lint:versions": "node ./scripts/lint-versions.js",
"prepare": "husky install",
"release": "changeset publish",
@ -54,6 +55,7 @@
"@types/fs-extra": "^9.0.7",
"@types/glob": "^7.1.3",
"@types/istanbul-reports": "^3.0.0",
"@types/mocha": "^10.0.0",
"@types/prettier": "^2.2.1",
"@web/dev-server": "^0.1.8",
"@web/dev-server-legacy": "^0.1.7",
@ -99,7 +101,6 @@
"ssl-root-cas": "^1.3.1",
"typescript": "~4.8.4",
"whatwg-fetch": "^3.0.0",
"@types/mocha": "^10.0.0",
"wireit": "^0.7.2"
},
"bundlesize": [