mirror of
https://gitee.com/openharmony/third_party_typescript
synced 2024-11-22 22:40:30 +00:00
Adopt package-lock.json and npm ci
This commit is contained in:
parent
2f2b679436
commit
5bcb353e18
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
|
||||
|
2
.github/workflows/new-release-branch.yaml
vendored
2
.github/workflows/new-release-branch.yaml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
2
.github/workflows/set-version.yaml
vendored
2
.github/workflows/set-version.yaml
vendored
@ -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
|
||||
|
2
.github/workflows/sync-branch.yaml
vendored
2
.github/workflows/sync-branch.yaml
vendored
@ -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
|
||||
|
2
.github/workflows/update-lkg.yml
vendored
2
.github/workflows/update-lkg.yml
vendored
@ -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
1
.gitignore
vendored
@ -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
|
||||
|
@ -18,7 +18,7 @@ branches:
|
||||
|
||||
install:
|
||||
- npm uninstall typescript --no-save
|
||||
- npm install
|
||||
- npm ci
|
||||
|
||||
cache:
|
||||
directories:
|
||||
|
@ -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 .
|
@ -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
8783
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user