Skip to content

Commit 985c0c7

Browse files
committed
Replace build with Yarn
1 parent f203be3 commit 985c0c7

File tree

4 files changed

+31
-51
lines changed

4 files changed

+31
-51
lines changed

.github/workflows/release.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
contents: write
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
- name: Set git identity
@@ -21,15 +21,21 @@ jobs:
2121
- name: Check whether it's the latest commit
2222
run: if [[ $(git ls-remote origin -h ${{ github.ref }} | cut -f1) != ${{ github.sha }} ]]; then exit 1; fi
2323
- name: Setup Node.js
24-
uses: actions/setup-node@v3.8.2
24+
uses: actions/setup-node@v4.0.2
2525
with:
26-
node-version: 14
26+
node-version: 20
27+
registry-url: https://registry.npmjs.org
28+
- name: Install build dependencies
29+
run: npm install -g yarn
2730
- name: Install dependencies
28-
run: npm ci
31+
run: |
32+
yarn global add @backstage/cli
33+
yarn clean
34+
yarn install --frozen-lockfile
2935
- name: Build
30-
run: npm run build
31-
- name: Run standard-version
32-
run: npm run release
36+
run: |
37+
yarn tsc --jsx react-jsx
38+
yarn build
3339
- name: Push new changelog to git
3440
run: git push --follow-tags
3541
- name: Release to GitHub releases

dev/index.tsx

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

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "@sysdig/backstage-plugin-sysdig",
33
"version": "1.0.0",
4-
"main": "src/index.ts",
5-
"types": "src/index.ts",
4+
"main": "dist/index.esm.js",
5+
"types": "dist/index.d.ts",
66
"license": "Apache-2.0",
77
"publishConfig": {
88
"access": "public",
@@ -23,9 +23,9 @@
2323
"postpack": "backstage-cli package postpack"
2424
},
2525
"dependencies": {
26-
"@backstage/core-components": "workspace:^",
27-
"@backstage/core-plugin-api": "workspace:^",
28-
"@backstage/theme": "workspace:^",
26+
"@backstage/core-components": "^0.14.0",
27+
"@backstage/core-plugin-api": "^1.9.0",
28+
"@backstage/theme": "^0.5.1",
2929
"@material-ui/core": "^4.9.13",
3030
"@material-ui/icons": "^4.9.1",
3131
"@material-ui/lab": "^4.0.0-alpha.61",
@@ -35,16 +35,17 @@
3535
"react": "^16.13.1 || ^17.0.0"
3636
},
3737
"devDependencies": {
38-
"@backstage/cli": "workspace:^",
39-
"@backstage/core-app-api": "workspace:^",
40-
"@backstage/dev-utils": "workspace:^",
41-
"@backstage/test-utils": "workspace:^",
38+
"@backstage/cli": "^0.25.2",
39+
"@backstage/core-app-api": "^1.12.0",
40+
"@backstage/dev-utils": "^1.0.27",
41+
"@backstage/test-utils": "^1.5.0",
4242
"@testing-library/jest-dom": "^5.10.1",
4343
"@testing-library/react": "^12.1.3",
4444
"@testing-library/user-event": "^14.0.0",
4545
"msw": "^1.0.0"
4646
},
4747
"files": [
4848
"dist"
49-
]
49+
],
50+
"module": "./dist/index.esm.js"
5051
}

tsconfig.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
/* Visit https://aka.ms/tsconfig to read more about this file */
44

55
/* Projects */
6-
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7-
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
6+
"incremental": false, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7+
"composite": false, /* Enable constraints that allow a TypeScript project to be used with project references. */
88
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
99
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
1010
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
@@ -49,15 +49,15 @@
4949
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
5050

5151
/* Emit */
52-
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
53-
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
52+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
53+
"declarationMap": true, /* Create sourcemaps for d.ts files. */
5454
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
55-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
55+
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
5656
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
5757
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58-
// "outDir": "./", /* Specify an output folder for all emitted files. */
58+
"outDir": "./dist-types/src", /* Specify an output folder for all emitted files. */
5959
// "removeComments": true, /* Disable emitting comments. */
60-
// "noEmit": true, /* Disable emitting files from a compilation. */
60+
"noEmit": false, /* Disable emitting files from a compilation. */
6161
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
6262
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
6363
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */

0 commit comments

Comments
 (0)