Skip to content

Commit b183dc2

Browse files
committed
chore: add SWC and sync files
1 parent 94eef89 commit b183dc2

File tree

6 files changed

+91
-20
lines changed

6 files changed

+91
-20
lines changed

.github/workflows/failureNotifications.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,24 @@ jobs:
2121
SLACK_WEBHOOK_URL: ${{ secrets.CLI_ALERTS_SLACK_WEBHOOK }}
2222
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
2323
with:
24+
# Payload can be visually tested here: https://app.slack.com/block-kit-builder/T01GST6QY0G#%7B%22blocks%22:%5B%5D%7D
25+
# Only copy over the "blocks" array to the Block Kit Builder
2426
payload: |
2527
{
26-
"text": "${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }}",
28+
"text": "Workflow \"${{ github.event.workflow_run.name }}\" failed in ${{ github.event.workflow_run.repository.name }}",
2729
"blocks": [
2830
{
2931
"type": "header",
3032
"text": {
3133
"type": "plain_text",
32-
"text": "${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }}"
34+
"text": ":bh-alert: Workflow \"${{ github.event.workflow_run.name }}\" failed in ${{ github.event.workflow_run.repository.name }} :bh-alert:"
3335
}
3436
},
3537
{
3638
"type": "section",
3739
"text": {
3840
"type": "mrkdwn",
39-
"text": "repo: ${{ github.event.workflow_run.repository.html_url }}\nworkflow name:${{ github.event.workflow_run.name }}\njob url: ${{ github.event.workflow_run.html_url }}"
41+
"text": "*Repo:* ${{ github.event.workflow_run.repository.html_url }}\n*Workflow name:* `${{ github.event.workflow_run.name }}`\n*Job url:* ${{ github.event.workflow_run.html_url }}"
4042
}
4143
}
4244
]

.github/workflows/test.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@ on:
55
workflow_dispatch:
66

77
jobs:
8-
unit-tests:
9-
uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main
8+
yarn-lockfile-check:
9+
uses: salesforcecli/github-workflows/.github/workflows/lockFileCheck.yml@main
10+
# Since the Windows unit tests take much longer, we run the linux unit tests first and then run the windows unit tests in parallel with NUTs
11+
linux-unit-tests:
12+
needs: yarn-lockfile-check
13+
uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main
14+
windows-unit-tests:
15+
needs: linux-unit-tests
16+
uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main
1017
nuts:
11-
needs: unit-tests
18+
needs: linux-unit-tests
1219
uses: salesforcecli/github-workflows/.github/workflows/nut.yml@main
1320
secrets: inherit
1421
strategy:
@@ -17,12 +24,3 @@ jobs:
1724
fail-fast: false
1825
with:
1926
os: ${{ matrix.os }}
20-
# conditional nuts based on commit message includes a certain string
21-
sandbox-nuts:
22-
needs: [nuts, unit-tests]
23-
if: contains(github.event.push.head_commit.message,'[sb-nuts]')
24-
uses: salesforcecli/github-workflows/.github/workflows/nut.yml@main
25-
secrets: inherit
26-
with:
27-
command: test:nuts:sandbox
28-
os: ubuntu-latest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# plugin-org
22

3-
[![NPM](https://img.shields.io/npm/v/@salesforce/plugin-org.svg?label=@salesforce/plugin-org)](https://www.npmjs.com/package/@salesforce/plugin-org) [![CircleCI](https://circleci.com/gh/salesforcecli/plugin-org/tree/main.svg?style=shield)](https://circleci.com/gh/salesforcecli/plugin-org/tree/main) [![Downloads/week](https://img.shields.io/npm/dw/@salesforce/plugin-org.svg)](https://npmjs.org/package/@salesforce/plugin-org) [![License](https://img.shields.io/badge/License-BSD%203--Clause-brightgreen.svg)](https://raw.githubusercontent.com/salesforcecli/plugin-org/main/LICENSE.txt)
3+
[![NPM](https://img.shields.io/npm/v/@salesforce/plugin-org.svg?label=@salesforce/plugin-org)](https://www.npmjs.com/package/@salesforce/plugin-org) [![Downloads/week](https://img.shields.io/npm/dw/@salesforce/plugin-org.svg)](https://npmjs.org/package/@salesforce/plugin-org) [![License](https://img.shields.io/badge/License-BSD%203--Clause-brightgreen.svg)](https://raw.githubusercontent.com/salesforcecli/plugin-org/main/LICENSE.txt)
44

55
Commands for working with Salesforce orgs. As the Salesforce CLI is transitioning commands owned by various teams to open source, it may not represent all of the `org` commands.
66

bin/dev

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ const project = path.join(__dirname, '..', 'tsconfig.json');
88
// In dev mode -> use ts-node and dev plugins
99
process.env.NODE_ENV = 'development';
1010

11-
require('ts-node').register({ project });
11+
// Enable SWC for faster typescript compiling
12+
require('ts-node').register({ project, swc: true });
1213

1314
// In dev mode, always show stack traces
14-
oclif.settings.debug = true;
15+
const g = (global.oclif = global.oclif || {});
16+
17+
// In dev mode, always show stack traces
18+
global.oclif.debug = true;
1519

1620
// Start the CLI
17-
oclif.run().then(oclif.flush).catch(oclif.Errors.handle);
21+
oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'));

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"@salesforce/plugin-command-reference": "^1.4.6",
2323
"@salesforce/prettier-config": "^0.0.2",
2424
"@salesforce/ts-sinon": "1.4.2",
25+
"@swc/core": "^1.3.16",
2526
"@types/chai-as-promised": "^7.1.5",
2627
"@types/shelljs": "^0.8.10",
2728
"@typescript-eslint/eslint-plugin": "^5.42.1",
@@ -112,4 +113,4 @@
112113
"publishConfig": {
113114
"access": "public"
114115
}
115-
}
116+
}

yarn.lock

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,72 @@
12051205
resolved "https://registry.yarnpkg.com/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz#8da5c6530915653f3a1f38fd5f101d8c3f8079c5"
12061206
integrity sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==
12071207

1208+
1209+
version "1.3.16"
1210+
resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.16.tgz#5d7d30dde35e2ca87ee67e12cbaf6613757048a7"
1211+
integrity sha512-tVhkffyl0UQELkz4tfIcBw4PahRTmeP72Yds1v2bvVpeH35i9SIYCsE9z6nH2uG5CwD+3OqvHZ47PNg3Shq+bw==
1212+
1213+
1214+
version "1.3.16"
1215+
resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.3.16.tgz#a9e9ccf14be68591dc4e85829e5151f774bc9edf"
1216+
integrity sha512-5wFflU0G31TlTpgpGEmUxRvSVgRnMPGdbY/dCaGri8xIlE7jVm5lf9mGhdAAKtG+Y0gxmMtNzi2NLicOAfEKbw==
1217+
1218+
1219+
version "1.3.16"
1220+
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.16.tgz#662354d78c3ca7444686b1d177d35dc8bc605eb5"
1221+
integrity sha512-KxTs9/Qo45MazfVywsol+OQIUTutGSPY1GbmnfVAhYqrLDt0C21YnpV9+9tjvGNys77F2QdoZGOMJ+fBvr7AJw==
1222+
1223+
1224+
version "1.3.16"
1225+
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.16.tgz#09490c8eecc3e5fc23787d879102cf3c172d3cf7"
1226+
integrity sha512-K0F8KVZzHpPsiL3+x3XZBAlECnLn5+BsAa995KUmQ4ALMkOGfkXRVrqkPEpxOTMyjNMyQgIbo261gk7o13+ONg==
1227+
1228+
1229+
version "1.3.16"
1230+
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.16.tgz#c80a074e10ef364e231eb1cb909e31fc4c3c86b4"
1231+
integrity sha512-tBZtiS2YmAgHNS6TxxUGc1Tn8HqL8XT3EbmyfewmJf8ALE5RcP12tMuXGJJr/9ac+QmwWaFMnXsmfu3hzdDdkQ==
1232+
1233+
1234+
version "1.3.16"
1235+
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.16.tgz#541791237e5660730b566cf2ca3fed0bceccce80"
1236+
integrity sha512-G/opqijVDalDZ7XfQYFhMRK1o74y5ZMP0SAOAajZQUiYBjAYWphpIbPLGoM3g3sK0CA2khA/P+l9kjV7VSvgyA==
1237+
1238+
1239+
version "1.3.16"
1240+
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.16.tgz#fcd5706fb7b2e0d013b0dae376d8cd0b85f64560"
1241+
integrity sha512-eedKXdDV1SFMZ20lETf4Qz0zc+yYzsQ7pqQzT9qNQwh3fo1u/iPx55Aq9MO0CEN+w579WRwwANtSSsuT3yr0tA==
1242+
1243+
1244+
version "1.3.16"
1245+
resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.16.tgz#83fce6117453d2abecf7e1c94f85b51af78c40d3"
1246+
integrity sha512-7mBA6aCtBWKQJ5teL+v8wHB4ShNCLQslzu5lso7fUH7mNViMl013X6HPV1umQLIM3f2tC+jMhSmtosxrRNiGDQ==
1247+
1248+
1249+
version "1.3.16"
1250+
resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.16.tgz#dd47e4c3f3adb062d55e277ec5d4836d8552e285"
1251+
integrity sha512-if3fwUYrwmskEM9QyYdg4edx1dIXrUYvolszAxfMyUq1GqezkK5PmIO5IAazSZOk8QHaUIA0wcTNKkf8sVyLAw==
1252+
1253+
1254+
version "1.3.16"
1255+
resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.16.tgz#d4a2b2f11aaeb96026b4f078278ea17f279208b9"
1256+
integrity sha512-EaXXW0M4EoodsH1ftEaPzixF5nZYKyXk5Qnzqq6hDSOfYzoUOiJ8nBXTHF6xqDHIPVRS1OUDzBujhHsGhQcuPw==
1257+
1258+
"@swc/core@^1.3.16":
1259+
version "1.3.16"
1260+
resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.3.16.tgz#be9b42fe54f3ba73ba6a580f3ae024abcbd45c54"
1261+
integrity sha512-y6xxxampiKWNMGWnEAJktDwk/u9j0SApgJyjgi3LQv+OTtm2LiPS3wtfYnWWXtsuKkL1HCf/H2/NLOwO0WLaPw==
1262+
optionalDependencies:
1263+
"@swc/core-darwin-arm64" "1.3.16"
1264+
"@swc/core-darwin-x64" "1.3.16"
1265+
"@swc/core-linux-arm-gnueabihf" "1.3.16"
1266+
"@swc/core-linux-arm64-gnu" "1.3.16"
1267+
"@swc/core-linux-arm64-musl" "1.3.16"
1268+
"@swc/core-linux-x64-gnu" "1.3.16"
1269+
"@swc/core-linux-x64-musl" "1.3.16"
1270+
"@swc/core-win32-arm64-msvc" "1.3.16"
1271+
"@swc/core-win32-ia32-msvc" "1.3.16"
1272+
"@swc/core-win32-x64-msvc" "1.3.16"
1273+
12081274
"@tootallnate/once@1":
12091275
version "1.1.2"
12101276
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"

0 commit comments

Comments
 (0)