Skip to content

Commit b1d45a5

Browse files
committed
fix: fix dual package TS type defs
1 parent fd4d868 commit b1d45a5

File tree

11 files changed

+3946
-5372
lines changed

11 files changed

+3946
-5372
lines changed

.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# created by @jcoreio/toolchain-circle
22

33
version: 2.1
4+
5+
orbs:
6+
codecov: codecov/codecov@4.1.0
47
jobs:
58
build:
69
docker:
@@ -24,6 +27,7 @@ jobs:
2427
name: Prepublish
2528
command: |
2629
[[ $(netstat -tnlp | grep -F 'circleci-agent') ]] || pnpm run tc prepublish
30+
- codecov/upload
2731
- run:
2832
name: Release
2933
command: |

.eslintrc.cjs

Lines changed: 0 additions & 4 deletions
This file was deleted.

.mocharc.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* eslint-env node, es2018 */
22
const base = require('@jcoreio/toolchain-mocha/.mocharc.cjs')
3+
const { getSpecs } = require('@jcoreio/toolchain-mocha')
34
module.exports = {
45
...base,
6+
spec: getSpecs(['test']),
57
}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
optional=false

eslint.config.cjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const { defineConfig } = require('eslint/config')
2+
3+
module.exports = defineConfig([
4+
...require('@jcoreio/toolchain/eslintConfig.cjs'),
5+
])

package.json

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,22 @@
1212
"author": "",
1313
"license": "ISC",
1414
"devDependencies": {
15-
"@jcoreio/eslint-plugin-implicit-dependencies": "^1.1.1",
16-
"@jcoreio/toolchain": "^3.11.1",
17-
"@jcoreio/toolchain-circle": "^3.11.1",
18-
"@jcoreio/toolchain-esnext": "^3.11.1",
19-
"@jcoreio/toolchain-mocha": "^3.11.1",
20-
"@jcoreio/toolchain-semantic-release": "^3.11.1",
21-
"@jcoreio/toolchain-typescript": "^3.11.1",
15+
"@jcoreio/toolchain": "^5.5.1",
16+
"@jcoreio/toolchain-circle": "^5.5.1",
17+
"@jcoreio/toolchain-esnext": "^5.5.1",
18+
"@jcoreio/toolchain-mocha": "^5.5.1",
19+
"@jcoreio/toolchain-semantic-release": "^5.5.1",
20+
"@jcoreio/toolchain-typescript": "^5.5.1",
2221
"@types/chai": "^4.3.5",
22+
"@types/mocha": "^10.0.1",
2323
"@types/node": "^20.11.22",
24-
"@typescript-eslint/eslint-plugin": "^7.6.0",
25-
"@typescript-eslint/parser": "^7.6.0",
2624
"chai": "^4.3.7",
27-
"eslint": "^8.56.0",
28-
"eslint-plugin-no-only-tests": "^3.1.0",
25+
"eslint": "^9.17.0",
26+
"globals": "^16.0.0",
27+
"lint-staged": "^15.2.2",
2928
"mocha": "^10.2.0",
29+
"nyc": "^15.1.0",
30+
"prettier": "^3.4.2",
3031
"ts-node": "^10.9.2",
3132
"typescript": "^5.7.3"
3233
},
@@ -36,7 +37,10 @@
3637
"exports": {
3738
"./package.json": "./package.json",
3839
".": {
39-
"types": "./dist/index.d.ts",
40+
"types": {
41+
"import": "./dist/index.d.mts",
42+
"default": "./dist/index.d.ts"
43+
},
4044
"import": "./dist/index.mjs",
4145
"default": "./dist/index.js"
4246
}
@@ -45,11 +49,14 @@
4549
"engines": {
4650
"node": ">=16"
4751
},
48-
"packageManager": "pnpm@8.11.0",
52+
"packageManager": "pnpm@10.6.5",
4953
"dependencies": {
50-
"@babel/runtime": "^7.18.6"
54+
"@babel/runtime": "^7.26.0"
5155
},
5256
"peerDependencies": {
5357
"zod": "^3.22.4"
58+
},
59+
"@jcoreio/toolchain": {
60+
"migratedVersion": "5.5.1"
5461
}
5562
}

0 commit comments

Comments
 (0)