Skip to content

Commit

Permalink
fix: make sure the action can actually run as ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
paambaati authored Jun 12, 2024
1 parent 47b3bc7 commit fd0ae9c
Show file tree
Hide file tree
Showing 7 changed files with 586 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
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ inputs:
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": "pnpm@9.3.0",
"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 fd0ae9c

Please sign in to comment.