@ercao/ts-utils 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ name: Check
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ pull_request:
7
+
8
+ jobs:
9
+ check:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v6
13
+ - uses: actions/setup-node@v6
14
+ with:
15
+ node-version: 24
16
+
17
+ - uses: oxc-project/oxlint-action@latest
18
+ name: Run OxLint
19
+ with:
20
+ config: .oxlintrc.json
21
+
22
+ - uses: pnpm/action-setup@v4
23
+ name: Install pnpm
24
+ with:
25
+ version: 10
26
+ cache: true
27
+ - name: Install dependencies
28
+ run: pnpm install
29
+ - run: pnpm build
@@ -12,19 +12,19 @@ jobs:
12
12
  build:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- - uses: actions/checkout@v4
15
+ - uses: actions/checkout@v6
16
16
  - uses: actions/setup-node@v6
17
17
  with:
18
- node-version: 20
18
+ node-version: 24
19
19
 
20
20
  publish-npm:
21
21
  needs: build
22
22
  runs-on: ubuntu-latest
23
23
  steps:
24
- - uses: actions/checkout@v4
24
+ - uses: actions/checkout@v6
25
25
  - uses: actions/setup-node@v6
26
26
  with:
27
- node-version: 20
27
+ node-version: 24
28
28
  registry-url: https://registry.npmjs.org/
29
29
  - uses: pnpm/action-setup@v4
30
30
  name: Install pnpm
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env sh
2
+
3
+ pnpm lint-staged
@@ -0,0 +1,3 @@
1
+ {
2
+ "*.{js,ts,json,yaml}": "oxfmt"
3
+ }
package/package.json CHANGED
@@ -1,56 +1,57 @@
1
1
  {
2
2
  "name": "@ercao/ts-utils",
3
- "version": "0.0.1",
4
- "type": "module",
3
+ "version": "0.0.2",
5
4
  "author": "ercao",
6
- "publishConfig": {
7
- "registry": "https://registry.npmjs.org/"
8
- },
5
+ "type": "module",
9
6
  "exports": {
10
7
  ".": {
11
- "import": "./dist/index.js",
12
- "types": "./dist/index.d.ts"
8
+ "types": "./dist/index.d.ts",
9
+ "import": "./dist/index.js"
13
10
  },
14
11
  "./tw": {
15
- "import": "./dist/tw.js",
16
- "types": "./dist/tw.d.ts"
12
+ "types": "./dist/tw.d.ts",
13
+ "import": "./dist/tw.js"
17
14
  },
18
15
  "./defu": {
19
- "import": "./dist/defu.js",
20
- "types": "./dist/defu.d.ts"
16
+ "types": "./dist/defu.d.ts",
17
+ "import": "./dist/defu.js"
21
18
  },
22
19
  "./remeda": {
23
- "import": "./dist/time.js",
24
- "types": "./dist/time.d.ts"
20
+ "types": "./dist/time.d.ts",
21
+ "import": "./dist/time.js"
25
22
  },
26
23
  "./ts-pattern": {
27
- "import": "./dist/ts-pattern.js",
28
- "types": "./dist/ts-pattern.d.ts"
24
+ "types": "./dist/ts-pattern.d.ts",
25
+ "import": "./dist/ts-pattern.js"
29
26
  },
30
27
  "./type-fest": {
31
- "import": "./dist/type-fest.js",
32
- "types": "./dist/type-fest.d.ts"
28
+ "types": "./dist/type-fest.d.ts",
29
+ "import": "./dist/type-fest.js"
33
30
  }
34
31
  },
32
+ "publishConfig": {
33
+ "registry": "https://registry.npmjs.org/"
34
+ },
35
35
  "dependencies": {
36
36
  "date-fns": "4.1.0",
37
37
  "defu": "6.1.4",
38
38
  "file64": "~1.0.5",
39
39
  "filesize": "~11.0.13",
40
40
  "js-file-download": "0.4.12",
41
- "normalize-url": "8.1.0",
41
+ "normalize-url": "8.1.1",
42
42
  "query-string": "9.3.1",
43
- "remeda": "~2.32.0",
43
+ "remeda": "~2.33.0",
44
44
  "tailwind-variants": "~3.2.2",
45
45
  "ts-pattern": "5.9.0"
46
46
  },
47
47
  "devDependencies": {
48
+ "lint-staged": "^16.2.7",
48
49
  "oxfmt": "^0.23.0",
49
50
  "oxlint": "^1.38.0",
50
51
  "tsdown": "^0.18.1",
51
- "type-fest": "5.2.0",
52
+ "type-fest": "5.3.1",
52
53
  "typescript": "^5.9.3",
53
- "vue-component-type-helpers": "~3.1.8"
54
+ "vue-component-type-helpers": "~3.2.0"
54
55
  },
55
56
  "scripts": {
56
57
  "dev": "tsdown --watch",