Skip to content

Commit 748bba0

Browse files
committed
Add task to copy over README + License
1 parent b5d8897 commit 748bba0

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ bundle-stats.html
1010
.history/
1111
stats.html
1212
/.idea
13+
/packages/react-live/LICENSE
14+
/packages/react-live/README.md

packages/react-live/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"storybook:build": "build-storybook -o .out",
1313
"build": "tsup",
1414
"build:watch": "tsup --watch",
15-
"prepublishOnly": "npm run build",
1615
"test": "jest",
16+
"prepublishOnly": "shx cp ../../README.md ./README.md && shx cp ../../LICENSE ./LICENSE && pnpm run build",
1717
"test:typings": "typings-tester --dir typings",
1818
"typecheck": "tsc --noEmit",
1919
"lint": "eslint --ext .js,.ts,.tsx src",
@@ -25,6 +25,7 @@
2525
"use-editable": "^2.3.3"
2626
},
2727
"devDependencies": {
28+
"shx": "^0.3.4",
2829
"@babel/core": "^7.15.0",
2930
"@babel/plugin-proposal-class-properties": "^7.14.5",
3031
"@babel/plugin-proposal-object-rest-spread": "^7.14.7",

pnpm-lock.yaml

Lines changed: 12 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)