Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/workflows/onRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,3 @@ jobs:
githubTag: ${{ github.event.release.tag_name || inputs.tag }}

secrets: inherit

publish-bundle:
if: ${{ success() && needs.getDistTag.outputs.tag == '' }}
uses: ./.github/workflows/releaseWithCoreBundle.yml
needs: [getDistTag, npm]
with:
branch: 'main'
secrets: inherit
24 changes: 0 additions & 24 deletions .github/workflows/releaseWithCoreBundle.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@ jobs:
windows-unit-tests:
needs: linux-unit-tests
uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main
test-bundle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: yarn
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main
- name: Build the project
run: yarn build
- name: check if bundling runs into failures
run: node scripts/testEsbuild.js

nuts:
needs: linux-unit-tests
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/testWithCoreBundle.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint && yarn pretty-quick --staged
node ./scripts/scanTs.js
yarn lint && yarn pretty-quick --staged
30 changes: 0 additions & 30 deletions .vscode/snippets.code-snippets

This file was deleted.

17 changes: 15 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"mocha": "^11.7.1",
"mocha-junit-reporter": "^1.23.3",
"mocha-snap": "^5.0.0",
"ts-morph": "^24.0.0",
"ts-node": "^10.9.2",
"ts-patch": "^3.3.0",
"typescript": "^5.5.4"
Expand Down Expand Up @@ -141,6 +140,19 @@
],
"output": []
},
"test:bundle": {
"dependencies": [
"compile"
],
"command": "node scripts/esbuild.config.mjs",
"files": [
"lib/src",
"scripts/esbuild.config.mjs"
],
"output": [
"dist"
]
},
"test:compile": {
"command": "tsc -p \"./test\" --pretty",
"files": [
Expand All @@ -154,7 +166,8 @@
"test:only",
"test:compile",
"test:registry-validation",
"test:snapshot"
"test:snapshot",
"test:bundle"
]
},
"test:registry-validation": {
Expand Down
18 changes: 5 additions & 13 deletions scripts/esbuild.config.js → scripts/esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,19 @@
* sdr is bundled directly in salesforcedx-vscode
* The file is only used to detect any potential risks to esbuild.
**/
const { build } = require('esbuild');
import { build } from 'esbuild';

const sharedConfig = {
await build({
bundle: true,
format: 'cjs',
platform: 'node',
external: [], // The allowlist of dependencies that are not bundle-able
keepNames: true,
plugins: [],
supported: {
'dynamic-import': false,
},
logOverride: {
'unsupported-dynamic-import': 'error',
},
};

(async () => {
await build({
...sharedConfig,
entryPoints: ['./lib/src/index.js'],
outdir: 'dist',
});
})();
entryPoints: ['./lib/src/index.js'],
outdir: 'dist',
});
51 changes: 0 additions & 51 deletions scripts/scanTs.js

This file was deleted.

20 changes: 0 additions & 20 deletions scripts/testEsbuild.js

This file was deleted.

Loading
Loading