Skip to content

Commit 22ae7db

Browse files
committed
Update tsconfig and CI
1 parent 3ef3f2f commit 22ae7db

3 files changed

Lines changed: 12 additions & 11 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@ jobs:
99
name: Test
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- uses: pnpm/action-setup@v2
12+
- uses: actions/checkout@v6
13+
- uses: pnpm/action-setup@v4
1414
with:
15-
version: 8
16-
- uses: actions/setup-node@v3
15+
version: latest
16+
- uses: actions/setup-node@v6
1717
with:
18-
node-version: '20'
19-
cache: 'pnpm'
18+
node-version: latest
19+
cache: pnpm
2020
- run: pnpm install
2121
- run: npm run format:check
2222
- run: npm run lint
23+
- run: npm run build
2324
- run: npm run test
2425
- name: Check ESM module resolution
2526
run: npx @arethetypeswrong/cli --ignore-rules cjs-resolves-to-esm --pack

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import {
1616
defaultConfigForLegacyTitle,
1717
} from './config.js'
1818

19-
export { Config, ConfigForLegacyTitle, defaultConfig, defaultConfigForLegacyTitle }
19+
export type { Config, ConfigForLegacyTitle }
20+
export { defaultConfig, defaultConfigForLegacyTitle }
2021
export { mkdocsConfig as mkdocsConfigForLegacyTitle } from './legacyTitle.js'
2122

2223
type PluginParameters = (Partial<Config> | Partial<ConfigForLegacyTitle>)[]

tsconfig.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
{
22
"include": ["src", "test", "vite.config.ts"],
33
"compilerOptions": {
4-
"lib": ["es2021"],
4+
"lib": ["es2022"],
55
"module": "node16",
6-
"target": "es2021",
6+
"target": "es2022",
77
"strict": true,
88
"skipLibCheck": true,
99
"forceConsistentCasingInFileNames": true,
1010
"outDir": "dist",
1111
"declaration": true,
12-
"declarationDir": "dist",
1312
"moduleResolution": "node16",
14-
"downlevelIteration": true
13+
"isolatedModules": true
1514
}
1615
}

0 commit comments

Comments
 (0)