Skip to content

Commit

Permalink
build: Fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jessieweiyi committed Oct 19, 2022
1 parent 8c4c3ca commit b6375e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
"scripts": {
"build:build-readme": "cp ./README_NPM_PACKAGE.md ./build/README.md && cat ./docs/GettingStarted.md >> ./build/README.md",
"build:build-package-json": "cat package.json | jq 'del(.devDependencies, .resolutions, .scripts, .\"lint-staged\")' > ./build/package.json",
"build": "tsc --build tsconfig.build.json && yarn build:build-package-json && yarn build:build-readme",
"build:esm": "tsc --build tsconfig.build.esm.json",
"build": "tsc --build tsconfig.build.json && yarn build:esm && yarn build:build-package-json && yarn build:build-readme",
"check:all": "yarn test:ci && yarn build && yarn storybook:build && yarn styleguide:build",
"lint:fix": "eslint --fix --ext .ts --ext .tsx --ext .js --ext .jsx .",
"lint": "eslint --max-warnings 0 --ext .ts --ext .tsx --ext .js --ext .jsx .",
"storybook:build": "build-storybook -s ./public -o storybook.out",
"storybook": "start-storybook -s ./public -p 9090",
"styleguide:build": "styleguidist build",
"styleguide": "styleguidist server",
"test:ci": "yarn test --coverage && yarn lint && yarn license:check && git secrets --scan",
"test:ci": "yarn test --coverage && yarn lint",
"test": "jest",
"test:watch": "jest --runInBand --watch ./src"
},
Expand Down
1 change: 0 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ yarn storybook:build
echo 'Remove build folder to make sure the npm package only includes clean built components'
if [ -d ${BUILD_FOLDER_LEGACY} ]; then rm -rf ${BUILD_FOLDER_LEGACY}; fi
yarn build
yarn build:esm

echo 'Copy license files'
cp ./LICENSE ${BUILD_FOLDER_LEGACY}
Expand Down

0 comments on commit b6375e3

Please sign in to comment.