Skip to content

Commit

Permalink
Merge pull request #758 from paambaati/gp/fix-esm-for-action
Browse files Browse the repository at this point in the history
fix: make sure the action can actually run as ESM
  • Loading branch information
paambaati authored Jun 12, 2024
2 parents 47b3bc7 + 26b2a65 commit 881dabb
Show file tree
Hide file tree
Showing 7 changed files with 590 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: pnpm run biome:ci

- name: build typescript
run: pnpm run build --noEmit
run: pnpm run build

- name: check for unformatted sources
run: |
Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ inputs:
required: false
description: 'Verify the downloaded reporter''s checksum and GPG signature'
default: 'true'
verifyEnvironment:
required: false
description: 'Verify that the Action environment (OS and CPU architecture) is supported by Code Climate test reporter'
default: 'true'
runs:
using: 'node20'
main: 'lib/main.js'
main: 'lib/main.mjs'
4 changes: 2 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.1/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"files": {
"include": ["./src/**/*.ts", "./test/**/*.ts"],
"include": ["./src/**/*.ts", "./test/**/*.ts", "tsup.config.ts"],
"ignore": ["./test/fixtures/**/*"]
},
"organizeImports": {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"main": "lib/main.js",
"packageManager": "[email protected]",
"scripts": {
"build": "tsc -p tsconfig.build.json",
"build": "tsup --config tsup.config.ts",
"test": "cross-env NODE_OPTIONS=\"--no-warnings\" tap run --disable-coverage",
"test:only": "pnpm run test --only",
"coverage": "pnpm run test --no-disable-coverage --allow-incomplete-coverage --coverage-report=lcovonly",
Expand Down Expand Up @@ -58,6 +58,7 @@
"sinon": "18.0.0",
"tap": "19.2.5",
"tsimp": "2.0.11",
"tsup": "8.1.0",
"typescript": "5.4.5",
"which": "4.0.0"
}
Expand Down
Loading

0 comments on commit 881dabb

Please sign in to comment.