Adopt package-lock.json and npm ci

This commit is contained in:
Andrew Casey 2020-08-19 16:50:23 -07:00
parent 2f2b679436
commit 5bcb353e18
12 changed files with 8793 additions and 14 deletions

View File

@ -30,7 +30,7 @@ jobs:
run: |
npm uninstall typescript --no-save
npm uninstall tslint --no-save
- run: npm install
- run: npm ci
- run: npm update
# Re: https://github.com/actions/setup-node/pull/125
@ -45,4 +45,4 @@ jobs:
- name: Validate the browser can import TypeScript
run: gulp test-browser-integration

View File

@ -23,7 +23,7 @@ jobs:
sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' tests/baselines/reference/api/typescript.d.ts
sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' tests/baselines/reference/api/tsserverlibrary.d.ts
sed -i -e 's/const version = `${versionMajorMinor}.0-.*`/const version = `${versionMajorMinor}.0-${{ github.event.client_payload.core_tag || 'dev' }}`/g' src/compiler/corePublic.ts
npm install
npm ci
gulp LKG
npm test
git diff

View File

@ -21,8 +21,7 @@ jobs:
npm uninstall tslint --no-save
- name: npm install and test
run: |
npm install
npm update
npm ci
npm test
env:
CI: true
@ -41,4 +40,3 @@ jobs:
with:
name: tgz
path: typescript.tgz

View File

@ -29,7 +29,7 @@ jobs:
sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' tests/baselines/reference/api/typescript.d.ts
sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' tests/baselines/reference/api/tsserverlibrary.d.ts
sed -i -e 's/const version = .*;/const version = "${{ github.event.client_payload.package_version }}" as string;/g' src/compiler/corePublic.ts
npm install
npm ci
gulp LKG
npm test
git diff

View File

@ -29,6 +29,6 @@ jobs:
git config user.name "TypeScript Bot"
git fetch origin master
git merge origin/master --no-ff
npm install
npm ci
npm test
git push

View File

@ -19,7 +19,7 @@ jobs:
run: |
git config user.email "ts_bot@rcavanaugh.com"
git config user.name "TypeScript Bot"
npm install
npm ci
gulp LKG
npm test
git diff

1
.gitignore vendored
View File

@ -84,7 +84,6 @@ tests/cases/user/*/**/*.d.ts
tests/baselines/reference/dt
.failed-tests
TEST-results.xml
package-lock.json
tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter
tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter
tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter

1
.npmrc
View File

@ -1 +0,0 @@
package-lock=false

View File

@ -18,7 +18,7 @@ branches:
install:
- npm uninstall typescript --no-save
- npm install
- npm ci
cache:
directories:

View File

@ -2,6 +2,6 @@
FROM node:current
COPY . /typescript
WORKDIR /typescript
RUN npm install
RUN npm ci
RUN npm i -g gulp-cli
RUN gulp configure-insiders && gulp LKG && gulp clean && npm pack .

View File

@ -67,7 +67,7 @@ Install [Gulp](https://gulpjs.com/) tools and dev dependencies:
```bash
npm install -g gulp
npm install
npm ci
```
Use one of the following to build and test:

8783
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff