Skip to content

Commit acadd12

Browse files
committed
fix: add prepack scripts
1 parent 31b7958 commit acadd12

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"private": true,
88
"type": "module",
99
"scripts": {
10+
"prepack": "yarn inject && yarn build",
1011
"print": "chalk yellow italic bold",
1112
"clean": "yarn print 'cleaning build code' && rimraf packages/core/dist packages/react/dist",
1213
"lint": "yarn print 'linting' && eslint packages/ --fix --ext ts,tsx",

packages/react/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"homepage": "https://github.com/skyra-project/discord-components/tree/main/packages/react#readme",
2626
"scripts": {
2727
"build": "tsup && yarn build:rename-esm-index",
28-
"build:rename-esm-index": "node scripts/rename-esm-index.mjs"
28+
"build:rename-esm-index": "node scripts/rename-esm-index.mjs",
29+
"prepack": "yarn build"
2930
},
3031
"dependencies": {
3132
"@lit/react": "^1.0.5",

0 commit comments

Comments
 (0)