Skip to content

Commit

Permalink
chore: copy files on tokens build (#3962)
Browse files Browse the repository at this point in the history
This is required for the publish command to work properly because only
files in dist are included in the package.
  • Loading branch information
gfellerph authored Nov 11, 2024
1 parent 62c6e12 commit c1adae5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 15 deletions.
4 changes: 3 additions & 1 deletion packages/tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"type": "module",
"scripts": {
"build": "pnpm clean && node ./build.js",
"copy-files": "copyfiles -f package.json README.md CONTRIBUTING.md CHANGELOG.md LICENSE dist",
"build": "pnpm clean && node ./build.js && pnpm copy-files",
"clean": "rimraf dist",
"build:verbose": "node ./build.js --verbosity=verbose"
},
Expand All @@ -33,6 +34,7 @@
},
"devDependencies": {
"@tokens-studio/sd-transforms": "1.2.2",
"copyfiles": "2.4.1",
"rimraf": "6.0.1",
"style-dictionary": "4.0.1"
}
Expand Down
41 changes: 27 additions & 14 deletions pnpm-lock.yaml

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

0 comments on commit c1adae5

Please sign in to comment.