mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
Switch from yarn to npm
This commit is contained in:
parent
a4b088e410
commit
84ebec3ac2
5 changed files with 21 additions and 21 deletions
|
|
@ -57,7 +57,7 @@ extends:
|
||||||
- script: npm ci
|
- script: npm ci
|
||||||
displayName: Install NPM dependencies
|
displayName: Install NPM dependencies
|
||||||
|
|
||||||
- script: yarn ts-node ./scripts/ci/monaco-editor-core-prepare nightly
|
- script: npm run ts-node ./scripts/ci/monaco-editor-core-prepare nightly
|
||||||
env:
|
env:
|
||||||
VSCODE_REF: ${{ parameters.vscodeRef }}
|
VSCODE_REF: ${{ parameters.vscodeRef }}
|
||||||
PRERELEASE_VERSION: ${{ parameters.prereleaseVersion }}
|
PRERELEASE_VERSION: ${{ parameters.prereleaseVersion }}
|
||||||
|
|
@ -78,7 +78,7 @@ extends:
|
||||||
- script: npm ci
|
- script: npm ci
|
||||||
displayName: Install NPM dependencies
|
displayName: Install NPM dependencies
|
||||||
|
|
||||||
- script: yarn ts-node ./scripts/ci/monaco-editor-prepare nightly
|
- script: npm run ts-node ./scripts/ci/monaco-editor-prepare nightly
|
||||||
env:
|
env:
|
||||||
VSCODE_REF: ${{ parameters.vscodeRef }}
|
VSCODE_REF: ${{ parameters.vscodeRef }}
|
||||||
PRERELEASE_VERSION: ${{ parameters.prereleaseVersion }}
|
PRERELEASE_VERSION: ${{ parameters.prereleaseVersion }}
|
||||||
|
|
|
||||||
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -65,12 +65,12 @@ jobs:
|
||||||
|
|
||||||
- name: Install website node modules
|
- name: Install website node modules
|
||||||
working-directory: website
|
working-directory: website
|
||||||
run: yarn install --frozen-lockfile
|
run: npm ci
|
||||||
|
|
||||||
- name: Build website
|
- name: Build website
|
||||||
working-directory: website
|
working-directory: website
|
||||||
run: yarn run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Test website
|
- name: Test website
|
||||||
working-directory: website
|
working-directory: website
|
||||||
run: yarn test
|
run: npm run test
|
||||||
|
|
|
||||||
2
.github/workflows/website.yml
vendored
2
.github/workflows/website.yml
vendored
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # pin@v2
|
- uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # pin@v2
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 20
|
||||||
- name: Cache node modules
|
- name: Cache node modules
|
||||||
id: cacheNodeModules
|
id: cacheNodeModules
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ This can be done directly from the VS Code repository and does not involve the m
|
||||||
|
|
||||||
- Clone the [VS Code repository](https://github.com/microsoft/vscode): `git clone https://github.com/microsoft/vscode`
|
- Clone the [VS Code repository](https://github.com/microsoft/vscode): `git clone https://github.com/microsoft/vscode`
|
||||||
- Open the repository in VS Code: `code vscode`
|
- Open the repository in VS Code: `code vscode`
|
||||||
- Run `yarn install`
|
- Run `npm install`
|
||||||
- Select and run the launch configuration "Monaco Editor Playground" (this might take a while, as it compiles the sources):
|
- Select and run the launch configuration "Monaco Editor Playground" (this might take a while, as it compiles the sources):
|
||||||
|
|
||||||

|

|
||||||
|
|
|
||||||
|
|
@ -3,18 +3,18 @@ set -e
|
||||||
|
|
||||||
# cwd must be the vscode repository.
|
# cwd must be the vscode repository.
|
||||||
|
|
||||||
yarn --frozen-lockfile --network-timeout 180000
|
npm ci
|
||||||
yarn playwright-install
|
npm run playwright-install
|
||||||
yarn gulp hygiene
|
npm run gulp hygiene
|
||||||
yarn valid-layers-check
|
npm run valid-layers-check
|
||||||
yarn --cwd build compile
|
cd build && npm run compile && cd -
|
||||||
yarn eslint
|
npm run eslint
|
||||||
yarn monaco-compile-check
|
npm run monaco-compile-check
|
||||||
yarn --max_old_space_size=4095 compile
|
npm run compile
|
||||||
|
|
||||||
yarn test-browser --browser chromium
|
npm run test-browser --browser chromium
|
||||||
|
|
||||||
yarn gulp editor-distro
|
npm run gulp editor-distro
|
||||||
mkdir typings-test
|
mkdir typings-test
|
||||||
|
|
||||||
cd typings-test
|
cd typings-test
|
||||||
|
|
@ -25,10 +25,10 @@ echo "import '../out-monaco-editor-core';" > a.ts
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
cd test/monaco
|
cd test/monaco
|
||||||
yarn run esm-check
|
npm run esm-check
|
||||||
yarn run bundle-webpack
|
npm run bundle-webpack
|
||||||
yarn run compile
|
npm run compile
|
||||||
yarn test
|
npm test
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
# npm package is now in dependencies/vscode/out-monaco-editor-core, ready to be published
|
# npm package is now in dependencies/vscode/out-monaco-editor-core, ready to be published
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue