Skip to content

Commit 181be3a

Browse files
committed
update workflows, tshy configs
1 parent 15d4510 commit 181be3a

File tree

5 files changed

+26
-14
lines changed

5 files changed

+26
-14
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push: {}
5+
pull_request_target:
6+
paths:
7+
- 'src/**'
8+
- 'test/**'
9+
- '*.json'
10+
411

512
jobs:
613
build:
714
strategy:
815
matrix:
9-
node-version: [18.x, 20.x, 21.x]
16+
node-version: [18.x, 22.x, 24.x]
1017
platform:
1118
- os: ubuntu-latest
1219
shell: bash

.github/workflows/typedoc.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,21 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333
- name: Use Nodejs ${{ matrix.node-version }}
34-
uses: actions/setup-node@v3
34+
uses: actions/setup-node@v4
3535
with:
36-
node-version: 18.x
36+
node-version: 20.x
3737
- name: Install dependencies
3838
run: npm install
3939
- name: Generate typedocs
4040
run: npm run typedoc
41-
4241
- name: Setup Pages
43-
uses: actions/configure-pages@v3
42+
uses: actions/configure-pages@v4
4443
- name: Upload artifact
45-
uses: actions/upload-pages-artifact@v1
44+
uses: actions/upload-pages-artifact@v3
4645
with:
4746
path: './docs'
4847
- name: Deploy to GitHub Pages
4948
id: deployment
50-
uses: actions/deploy-pages@v1
49+
uses: actions/deploy-pages@v4

.tshy/commonjs.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
"include": [
44
"../src/**/*.ts",
55
"../src/**/*.cts",
6-
"../src/**/*.tsx"
6+
"../src/**/*.tsx",
7+
"../src/**/*.json"
78
],
89
"exclude": [
9-
"../src/**/*.mts"
10+
"../src/**/*.mts",
11+
"../src/package.json"
1012
],
1113
"compilerOptions": {
1214
"outDir": "../.tshy-build/commonjs"

.tshy/esm.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
"include": [
44
"../src/**/*.ts",
55
"../src/**/*.mts",
6-
"../src/**/*.tsx"
6+
"../src/**/*.tsx",
7+
"../src/**/*.json"
8+
],
9+
"exclude": [
10+
"../src/package.json"
711
],
8-
"exclude": [],
912
"compilerOptions": {
1013
"outDir": "../.tshy-build/esm"
1114
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,5 +320,6 @@
320320
},
321321
"type": "module",
322322
"main": "./dist/commonjs/index.js",
323-
"types": "./dist/commonjs/index.d.ts"
323+
"types": "./dist/commonjs/index.d.ts",
324+
"module": "./dist/esm/index.js"
324325
}

0 commit comments

Comments
 (0)