File tree Expand file tree Collapse file tree 5 files changed +330
-18
lines changed Expand file tree Collapse file tree 5 files changed +330
-18
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "ignoreRules" : [" cjs-resolves-to-esm" ]
3
+ }
Original file line number Diff line number Diff line change 9
9
- main
10
10
11
11
jobs :
12
+ lint :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
16
+ - run : corepack enable
17
+ - uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
18
+ with :
19
+ node-version : 22
20
+ cache : pnpm
21
+
22
+ - name : 📦 Install dependencies
23
+ run : pnpm install
24
+
25
+ - name : 🔠 Lint project
26
+ run : pnpm lint
27
+
28
+ - name : 💪 Check published types
29
+ run : pnpm test:attw
30
+
31
+ - name : 📦 Check `package.json`
32
+ run : pnpm test:publint
33
+
12
34
ci :
13
35
strategy :
14
36
matrix :
@@ -17,17 +39,24 @@ jobs:
17
39
steps :
18
40
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
19
41
- run : corepack enable
20
- - uses : actions/setup-node@v4
42
+ - uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
21
43
with :
22
44
node-version : 18
23
- cache : ' pnpm'
24
- - run : pnpm install
45
+ cache : pnpm
46
+
47
+ - name : 📦 Install dependencies
48
+ run : pnpm install
49
+
25
50
- run : pnpm dev:prepare
26
- - run : pnpm lint
27
- - run : pnpm test
28
- - run : pnpm build
29
- - run : pnpm example:build
30
- - run : pnpm test:types
31
- - run : pnpm publint
32
- if : matrix.os == 'ubuntu-latest'
33
- working-directory : example
51
+
52
+ - name : 🧪 Test project
53
+ run : pnpm test
54
+
55
+ - name : 🛠 Build project
56
+ run : pnpm build
57
+
58
+ - name : 🛠 Build project (example)
59
+ run : pnpm example:build
60
+
61
+ - name : 💪 Type check
62
+ run : pnpm test:types
Original file line number Diff line number Diff line change 13
13
"main" : " dist/module.mjs" ,
14
14
"typesVersions" : {
15
15
"*" : {
16
- "*" : [
17
- " ./dist/*" ,
18
- " ./*"
16
+ "utils" : [
17
+ " ./dist/utils.d.mts"
19
18
]
20
19
}
21
20
},
Original file line number Diff line number Diff line change 6
6
"license" : " MIT" ,
7
7
"type" : " module" ,
8
8
"exports" : {
9
- "." : {
10
- "import" : " ./dist/index.mjs"
11
- },
9
+ "." : " ./dist/index.mjs" ,
12
10
"./package.json" : " ./package.json"
13
11
},
14
- "types" : " ./dist/index.d.ts" ,
12
+ "typesVersions" : {
13
+ "*" : {
14
+ "*" : [
15
+ " ./dist/*.d.mts"
16
+ ],
17
+ "package.json" : [
18
+ " package.json"
19
+ ]
20
+ }
21
+ },
15
22
"bin" : {
16
23
"nuxt-build-module" : " ./dist/cli.mjs" ,
17
24
"nuxt-module-build" : " ./dist/cli.mjs"
28
35
"prepack" : " pnpm build" ,
29
36
"release" : " pnpm vitest run && pnpm build && changelogen --release && pnpm publish && git push --follow-tags" ,
30
37
"test" : " pnpm vitest --coverage" ,
38
+ "test:attw" : " attw --pack example && attw --pack ." ,
39
+ "test:publint" : " cd example && publint" ,
31
40
"test:types" : " vue-tsc --noEmit && pnpm -r test:types"
32
41
},
33
42
"packageManager" :
" [email protected] " ,
48
57
"typescript" : " ^5.7.2"
49
58
},
50
59
"devDependencies" : {
60
+ "@arethetypeswrong/cli" : " ^0.17.2" ,
51
61
"@nuxt/eslint-config" : " ^0.7.4" ,
52
62
"@nuxt/schema" : " ^3.15.1" ,
53
63
"@types/node" : " ^22.10.5" ,
You can’t perform that action at this time.
0 commit comments