File tree Expand file tree Collapse file tree 3 files changed +26
-10
lines changed Expand file tree Collapse file tree 3 files changed +26
-10
lines changed Original file line number Diff line number Diff line change 23
23
node-version : ${{ matrix.node-version }}
24
24
25
25
- name : Cache ~/.pnpm-store
26
- uses : actions/cache@v3
26
+ uses : actions/cache@v4
27
27
env :
28
28
cache-name : cache-pnpm-store
29
29
with :
71
71
${{ runner.os }}-
72
72
- run : npm i -g pnpm
73
73
- run : pnpm i
74
- - run : pnpm run prepublishOnly
74
+ - run : pnpm run clean || true
75
+ - run : pnpm run build
76
+ - run : pnpm run copy-files
75
77
- run : pnpm dlx semantic-release@20 --branches main
76
78
env :
77
79
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ src /
2
+ test /
3
+ .github /
4
+ biome.json
5
+ renovate.json
6
+ tsconfig.json
7
+ dist /
8
+ * .config.js
9
+ * .config.ts
10
+ * .log
Original file line number Diff line number Diff line change 7
7
" try-catch" ,
8
8
" errors"
9
9
],
10
- "version" : " 2.0.0 " ,
10
+ "version" : " 2.0.1 " ,
11
11
"repository" : {
12
12
"type" : " git" ,
13
13
"url" : " https://github.com/ahme-dev/tryresult.git"
16
16
"access" : " public"
17
17
},
18
18
"files" : [
19
- " dist"
19
+ " *.js" ,
20
+ " *.mjs" ,
21
+ " *.d.ts"
20
22
],
21
- "main" : " ./dist/ index.js" ,
22
- "module" : " ./dist/ index.mjs" ,
23
+ "main" : " ./index.js" ,
24
+ "module" : " ./index.mjs" ,
23
25
"exports" : {
24
- "require" : " ./dist/ index.js" ,
25
- "import" : " ./dist/ index.mjs"
26
+ "require" : " ./index.js" ,
27
+ "import" : " ./index.mjs"
26
28
},
27
- "types" : " ./dist/ index.d.ts" ,
29
+ "types" : " ./index.d.ts" ,
28
30
"scripts" : {
29
31
"build-fast" : " tsup src --format cjs,esm" ,
30
32
"build" : " pnpm run build-fast --dts" ,
33
+ "copy-files" : " cp dist/*.js dist/*.mjs dist/*.d.ts ." ,
34
+ "clean" : " rm -f *.js *.mjs *.d.ts" ,
31
35
"test" : " vitest run" ,
32
36
"size" : " size-limit" ,
33
- "prepublishOnly" : " pnpm run build"
37
+ "prepublishOnly" : " pnpm run clean && pnpm run build && pnpm run copy-files "
34
38
},
35
39
"size-limit" : [
36
40
{
You can’t perform that action at this time.
0 commit comments