Skip to content

Commit

Permalink
update to use esm
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmattgray committed Feb 6, 2024
1 parent d112e7e commit 8eb2903
Show file tree
Hide file tree
Showing 48 changed files with 688 additions and 291 deletions.
3 changes: 2 additions & 1 deletion .depcheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"@types/ref-struct-di",
"tsconfig-paths",
"@src/*",
"@schema/*"
"@schema/*",
"tsimp"
]
}
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
- name: Cache Node.js modules
uses: actions/cache@v3
with:
Expand All @@ -57,7 +57,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
- name: Cache Node.js modules
uses: actions/cache@v3
with:
Expand All @@ -78,7 +78,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
- name: Cache Node.js modules
uses: actions/cache@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x

- name: Cache Node.js modules
uses: actions/cache@v3
Expand All @@ -72,7 +72,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x

- name: Cache Node.js modules
uses: actions/cache@v3
Expand All @@ -97,7 +97,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x

- name: Cache Node.js modules
uses: actions/cache@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ src/routes/swagger.json
src/routes/routes.ts
dist
coverage
.tsimp

.DS_Store
.npm
Expand Down
2 changes: 1 addition & 1 deletion bin/afj-rest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
/* eslint-disable @typescript-eslint/no-var-requires, no-undef */

const { runCliServer } = require('../build/cli')
import { runCliServer } from '../build/cli.js'

runCliServer()
Loading

0 comments on commit 8eb2903

Please sign in to comment.