Skip to content

Commit

Permalink
Merge pull request #754 from openameba/feat/tokens-prepublish
Browse files Browse the repository at this point in the history
feat(spindle-tokens): publish css at package root
  • Loading branch information
herablog authored Jul 21, 2023
2 parents dbb355b + 1b6a781 commit 524ad71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/spindle-tokens/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# output for npm package
spindle-tokens.css
8 changes: 5 additions & 3 deletions packages/spindle-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
"publishConfig": {
"access": "public"
},
"style": "dist/css/spindle-tokens.css",
"style": "spindle-tokens.css",
"files": [
"dist/**",
"spindle-tokens.png"
"spindle-tokens.png",
"spindle-tokens.css"
],
"repository": {
"type": "git",
Expand All @@ -24,7 +25,8 @@
"build:css": "style-dictionary build --config ./config-css.js",
"preexport": "tsc",
"export": "./node_modules/.bin/figma-export use-config",
"prepublishOnly": "yarn build"
"cp": "npx cpx dist/css/spindle-tokens.css ./",
"prepublishOnly": "yarn build & yarn cp"
},
"bugs": {
"url": "https://github.com/openameba/spindle/issues"
Expand Down

0 comments on commit 524ad71

Please sign in to comment.