Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: use NPM to install node_modules #1007

Merged
merged 1 commit into from
Dec 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rm -rf **/*.tsbuildinfo
yarn run compile

# Copy files to package root
cp package.json yarn.lock angular.png CHANGELOG.md README.md dist/npm
cp package.json angular.png CHANGELOG.md README.md dist/npm
# Copy files to server directory
cp server/package.json server/README.md dist/npm/server
# Build and copy files to syntaxes directory
Expand All @@ -23,9 +23,11 @@ mkdir dist/npm/syntaxes
cp syntaxes/!(tsconfig).json dist/npm/syntaxes

pushd dist/npm
yarn install --production --ignore-scripts
kyliau marked this conversation as resolved.
Show resolved Hide resolved
# TODO(kyliau): vsce does not bundle nested node_modules due to bug
# https://github.com/microsoft/vscode-vsce/issues/432 so install using NPM for now.
npm install --production --ignore-scripts

sed -i -e 's#./dist/client/extension#./index#' package.json
../../node_modules/.bin/vsce package --yarn --out ngls.vsix
../../node_modules/.bin/vsce package

popd