Skip to content

Commit bbdc2c4

Browse files
committed
ci: don't bundle library
1 parent 6452491 commit bbdc2c4

11 files changed

Lines changed: 28 additions & 183 deletions

.github/workflows/onRelease.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,3 @@ jobs:
3030
tag: ${{ needs.getDistTag.outputs.tag || 'latest' }}
3131
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
3232
secrets: inherit
33-
34-
publish-bundle:
35-
if: ${{ success() && needs.getDistTag.outputs.tag == '' }}
36-
uses: ./.github/workflows/releaseWithCoreBundle.yml
37-
needs: [getDistTag, npm]
38-
with:
39-
branch: 'main'
40-
secrets: inherit

.github/workflows/releaseWithCoreBundle.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/testCommitExceptMain.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Build the project
2020
run: yarn build
2121
- name: check if bundling runs into failures
22-
run: node scripts/testEsbuild.js
22+
run: node scripts/esbuild.config.mjs
2323
xNuts:
2424
needs: unit-tests
2525
name: external NUTs

.github/workflows/testWithCoreBundle.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
. "$(dirname -- "$0")/_/husky.sh"
33

44
yarn lint-staged
5-
node ./scripts/scanTs.js

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"shx": "^0.4.0",
4646
"sinon": "^17.0.1",
4747
"source-map-support": "^0.5.16",
48-
"ts-morph": "^23.0.0",
4948
"ts-node": "^10.9.2",
5049
"typescript": "^5.9.2"
5150
},

scripts/esbuild.config.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

scripts/esbuild.config.mjs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* NOTE: This file does NOT really generate a bundle version of apex-node
3+
* apex-node is bundled directly in salesforcedx-vscode
4+
* The file is only used to detect any potential risks to esbuild.
5+
**/
6+
import { build } from 'esbuild';
7+
8+
9+
await build({
10+
bundle: true,
11+
format: 'cjs',
12+
platform: 'node',
13+
external: [
14+
'jsonpath'
15+
], // The whitelist of dependencies that are not bundle-able
16+
keepNames: true,
17+
plugins: [
18+
],
19+
supported: {
20+
'dynamic-import': false
21+
},
22+
logOverride: {
23+
'unsupported-dynamic-import': 'error',
24+
}, entryPoints: ['./lib/src/index.js'],
25+
outdir: 'dist'
26+
});

scripts/scanTs.js

Lines changed: 0 additions & 51 deletions
This file was deleted.

scripts/testEsbuild.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)