Skip to content

Commit

Permalink
fix: dev scripts only run in sd cwd (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenbroekema authored Jan 26, 2024
1 parent 290cf44 commit 24584b4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-geckos-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'style-dictionary': patch
---

Conditionally only run dev scripts when CWD is style-dictionary, so our consumers don't run it by accident
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
"examples",
"LICENSE",
"NOTICE",
"types",
"scripts/postinstall-dev.cjs"
"types"
],
"scripts": {
"format": "run-p format:*",
Expand All @@ -60,7 +59,8 @@
"serve-docs": "docsify serve docs -p 3000 -P 12345",
"install-cli": "npm install -g $(npm pack)",
"release": "node scripts/inject-version.js && tsc --emitDeclarationOnly && changeset publish",
"postinstall": "node scripts/postinstall-dev.cjs"
"prepare": "husky install",
"postinstall": "patch-package"
},
"lint-staged": {
"*.js": [
Expand Down Expand Up @@ -107,6 +107,7 @@
"is-plain-obj": "^4.1.0",
"json5": "^2.2.2",
"lodash-es": "^4.17.21",
"patch-package": "^8.0.0",
"path-unified": "^0.1.0",
"tinycolor2": "^1.6.0"
},
Expand Down Expand Up @@ -139,7 +140,6 @@
"memfs": "^4.6.0",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.5",
"patch-package": "^8.0.0",
"prettier": "^3.0.3",
"sass": "^1.69.5",
"stylus": "^0.56.0",
Expand Down
5 changes: 0 additions & 5 deletions scripts/postinstall-dev.cjs

This file was deleted.

0 comments on commit 24584b4

Please sign in to comment.