💚 use yarn option to package extension
This commit is contained in:
parent
be2d5c293b
commit
bc04e2e865
4 changed files with 9188 additions and 9 deletions
2
.github/workflows/main.yaml
vendored
2
.github/workflows/main.yaml
vendored
|
|
@ -140,7 +140,7 @@ jobs:
|
|||
npm install -f esbuild
|
||||
|
||||
- name: Package the extension
|
||||
run: cd extensions/vscode && npx vsce package --target ${{ env.target }}
|
||||
run: cd extensions/vscode && npx vsce package --yarn --target ${{ env.target }}
|
||||
|
||||
# 5. Upload the .vsix as an artifact
|
||||
- uses: actions/upload-artifact@v2
|
||||
|
|
|
|||
6
.github/workflows/preview.yaml
vendored
6
.github/workflows/preview.yaml
vendored
|
|
@ -106,10 +106,6 @@ jobs:
|
|||
shell: pwsh
|
||||
run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_ENV
|
||||
|
||||
- name: L S
|
||||
run: |
|
||||
ls core/node_modules/@mozilla/readability
|
||||
|
||||
- name: Prepackage the extension
|
||||
run: |
|
||||
cd extensions/vscode
|
||||
|
|
@ -139,7 +135,7 @@ jobs:
|
|||
npm install -f esbuild
|
||||
|
||||
- name: Package the extension
|
||||
run: cd extensions/vscode && npx vsce package --pre-release --target ${{ env.target }}
|
||||
run: cd extensions/vscode && npx vsce package --yarn --pre-release --target ${{ env.target }}
|
||||
|
||||
# 5. Upload the .vsix as an artifact
|
||||
- uses: actions/upload-artifact@v2
|
||||
|
|
|
|||
|
|
@ -319,7 +319,8 @@ if (args[2] === "--target") {
|
|||
await Promise.all(
|
||||
NODE_MODULES_TO_COPY.map(
|
||||
(mod) =>
|
||||
new Promise((resolve, reject) =>
|
||||
new Promise((resolve, reject) => {
|
||||
fs.mkdirSync(`out/node_modules/${mod}`, { recursive: true });
|
||||
ncp(
|
||||
`node_modules/${mod}`,
|
||||
`out/node_modules/${mod}`,
|
||||
|
|
@ -331,8 +332,8 @@ if (args[2] === "--target") {
|
|||
resolve();
|
||||
}
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
}),
|
||||
),
|
||||
);
|
||||
console.log(`[info] Copied ${NODE_MODULES_TO_COPY.join(", ")}`);
|
||||
|
|
|
|||
9182
extensions/vscode/yarn.lock
Normal file
9182
extensions/vscode/yarn.lock
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue