Skip to content

Commit 7b6c5ad

Browse files
authored
fix: move build from prepack to build script (#24)
1 parent 156495f commit 7b6c5ad

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
- checkout
4949
- restore_cache: *restore_cache
5050
- run: *install_dependencies
51+
- run:
52+
name: Build package
53+
command: yarn build
5154
- run:
5255
name: Release package
5356
command: yarn run semantic-release

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@
6363
},
6464
"repository": "CDThomas/graphql-usage",
6565
"scripts": {
66+
"build": "rm -rf lib && tsc -b && yarn ui:build && yarn ui:copy",
6667
"ui:build": "cd ./graphql-usage-ui && rm -rf build && yarn build",
6768
"ui:copy": "rm -rf ./build && cp -R ./graphql-usage-ui/build ./build",
6869
"posttest": "tslint -p . -t stylish",
69-
"prepack": "rm -rf lib && tsc -b && yarn ui:build && yarn ui:copy",
7070
"test": "jest",
7171
"test:watch": "jest --watch",
7272
"cm": "git-cz"

0 commit comments

Comments
 (0)