Skip to content

Commit a1e6589

Browse files
committed
bundle dependencies for preview release only
1 parent 5530551 commit a1e6589

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/preview-release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ jobs:
5858
- name: Run tests
5959
run: pnpm -r run test:unit
6060

61-
- name: Deploy and pack CLI with bundled SDK
62-
env:
63-
# Force pnpm to copy files instead of hard-linking from store
64-
npm_config_package_import_method: copy
61+
- name: Deploy and pack CLI with bundled dependencies
6562
run: |
6663
mkdir -p dist
6764
pnpm --filter @salesforce/b2c-cli deploy --legacy ./dist-deploy

packages/b2c-cli/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@
1818
"cliui": "^9.0.1"
1919
},
2020
"bundleDependencies": [
21-
"@salesforce/b2c-tooling-sdk"
21+
"@oclif/core",
22+
"@oclif/plugin-autocomplete",
23+
"@oclif/plugin-help",
24+
"@oclif/plugin-not-found",
25+
"@oclif/plugin-plugins",
26+
"@oclif/plugin-version",
27+
"@salesforce/b2c-tooling-sdk",
28+
"cliui"
2229
],
2330
"devDependencies": {
2431
"@eslint/compat": "^1",

pnpm-workspace.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
packages:
22
- packages/*
33

4+
# Use hoisted node_modules for npm-compatible bundleDependencies
5+
nodeLinker: hoisted
6+
47
minimumReleaseAge: 2880
58

69
minimumReleaseAgeExclude: []

0 commit comments

Comments
 (0)