Skip to content

Commit 61a3c35

Browse files
committed
feat: convert to dual CJS/ESM package, add history to dependencies
1 parent 03c3e4c commit 61a3c35

File tree

8 files changed

+1083
-1010
lines changed

8 files changed

+1083
-1010
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 2.1
44
jobs:
55
build:
66
docker:
7-
- image: cimg/node:20.3.0
7+
- image: cimg/node:20.10.0
88

99
steps:
1010
- checkout

.vscode/launch.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "test:debug <file>",
6+
"port": 9229,
7+
"request": "attach",
8+
"skipFiles": ["<node_internals>/**"],
9+
"type": "node",
10+
"preLaunchTask": "test:debug <file>"
11+
}
12+
]
13+
}

.vscode/tasks.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "shell",
6+
"options": {
7+
"shell": {
8+
"executable": "bash",
9+
"args": ["-c", "-l"]
10+
}
11+
},
12+
"command": "pnpm",
13+
"isBackground": false,
14+
"group": "test",
15+
"presentation": {
16+
"panel": "dedicated",
17+
"clear": true
18+
},
19+
"label": "test <file>",
20+
"args": ["tc", "test", "${file}"]
21+
},
22+
{
23+
"type": "shell",
24+
"options": {
25+
"shell": {
26+
"executable": "bash",
27+
"args": ["-c", "-l"]
28+
}
29+
},
30+
"command": "pnpm",
31+
"isBackground": false,
32+
"group": "test",
33+
"presentation": {
34+
"panel": "dedicated",
35+
"clear": true
36+
},
37+
"label": "test:watch <file>",
38+
"args": ["tc", "test", "--watch", "${file}"]
39+
},
40+
{
41+
"type": "shell",
42+
"options": {
43+
"shell": {
44+
"executable": "bash",
45+
"args": ["-c", "-l"]
46+
}
47+
},
48+
"command": "pnpm",
49+
"isBackground": false,
50+
"group": "test",
51+
"presentation": {
52+
"panel": "dedicated",
53+
"clear": true
54+
},
55+
"label": "test:debug <file>",
56+
"args": ["tc", "test", "-n", "inspect-brk", "${file}"]
57+
}
58+
]
59+
}

package.json

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,43 +34,45 @@
3434
},
3535
"homepage": "https://github.com/jcoreio/react-router-drilldown#readme",
3636
"devDependencies": {
37+
"@babel/core": "^7.24.4",
3738
"@babel/plugin-syntax-flow": "^7.14.5",
3839
"@babel/plugin-transform-react-jsx": "^7.14.9",
39-
"@babel/polyfill": "^7.12.1",
40-
"@babel/preset-env": "^7.24.0",
41-
"@babel/preset-react": "^7.23.3",
42-
"@babel/preset-typescript": "^7.23.3",
43-
"@jcoreio/toolchain": "^3.4.0",
44-
"@jcoreio/toolchain-circle": "^3.4.0",
45-
"@jcoreio/toolchain-esnext": "^3.4.0",
46-
"@jcoreio/toolchain-flow": "^3.4.0",
47-
"@jcoreio/toolchain-mocha": "^3.4.0",
48-
"@jcoreio/toolchain-react": "^3.4.0",
49-
"@jcoreio/toolchain-semantic-release": "^3.4.0",
50-
"@jcoreio/toolchain-typescript": "^3.4.0",
40+
"@babel/preset-env": "^7.24.4",
41+
"@babel/preset-react": "^7.24.1",
42+
"@babel/preset-typescript": "^7.24.1",
43+
"@jcoreio/eslint-plugin-implicit-dependencies": "^1.1.1",
44+
"@jcoreio/toolchain": "^3.10.3",
45+
"@jcoreio/toolchain-circle": "^3.10.3",
46+
"@jcoreio/toolchain-esnext": "^3.10.3",
47+
"@jcoreio/toolchain-flow": "^3.10.3",
48+
"@jcoreio/toolchain-mocha": "^3.10.3",
49+
"@jcoreio/toolchain-react": "^3.10.3",
50+
"@jcoreio/toolchain-semantic-release": "^3.10.3",
51+
"@jcoreio/toolchain-typescript": "^3.10.3",
5152
"@material-ui/core": "^3.9.3",
5253
"@material-ui/icons": "^3.0.2",
5354
"@testing-library/react": "^14.2.1",
54-
"@types/chai": "^4.0.0",
55+
"@types/chai": "^4.3.5",
5556
"@types/mocha": "^10.0.6",
5657
"@types/react": "^18.0.0",
5758
"@types/react-router-dom": "^5.3.3",
5859
"@types/warning": "^3.0.3",
59-
"@typescript-eslint/eslint-plugin": "^5.60.0",
60-
"@typescript-eslint/parser": "^5.60.0",
61-
"babel-loader": "^8.0.5",
60+
"@typescript-eslint/eslint-plugin": "^7.6.0",
61+
"@typescript-eslint/parser": "^7.6.0",
62+
"babel-loader": "^9.1.3",
6263
"chai": "^4.3.7",
6364
"copy": "^0.3.2",
65+
"core-js": "^3.36.1",
6466
"cross-env": "^5.2.0",
6567
"css-loader": "^0.28.4",
66-
"eslint": "^8.43.0",
68+
"eslint": "^8.56.0",
6769
"eslint-config-prettier": "^3.3.0",
6870
"eslint-plugin-flowtype": "^8.0.3",
71+
"eslint-plugin-no-only-tests": "^3.1.0",
6972
"eslint-plugin-react": "^7.32.2",
7073
"flow-bin": "^0.92.0",
7174
"gh-pages": "^2.0.1",
7275
"global-jsdom": "^9.0.1",
73-
"history": "^4.10.1",
7476
"jsdom": "^22.1.0",
7577
"lodash.size": "^4.2.0",
7678
"mocha": "^10.2.0",
@@ -84,30 +86,33 @@
8486
"sinon": "^1.17.6",
8587
"style-loader": "^0.18.2",
8688
"typescript": "^5.1.0",
87-
"webpack": "^5.90.3",
89+
"webpack": "^5.91.0",
8890
"webpack-cli": "^5.1.4",
89-
"webpack-dev-server": "^5.0.2"
91+
"webpack-dev-server": "^5.0.4"
9092
},
9193
"dependencies": {
9294
"@babel/runtime": "^7.18.6",
9395
"@types/history": "^4.7.11",
9496
"@types/inline-style-prefixer": "^5.0.3",
9597
"@types/react-router": "^5.1.20",
98+
"history": "^4.10.1",
9699
"inline-style-prefixer": "^2.0.5",
97100
"prop-types": "^15.6.0",
98-
"react-view-slider": "^4.6.0",
101+
"react-view-slider": "^4.6.1",
99102
"warning": "^4.0.3"
100103
},
101104
"peerDependencies": {
102105
"react": "^16.8.0",
103106
"react-router": "^4.0.0 || ^5.0.0"
104107
},
105108
"main": "dist/index.js",
109+
"module": "dist/index.mjs",
106110
"types": "dist/index.d.ts",
107111
"exports": {
108112
"./package.json": "./package.json",
109113
".": {
110114
"types": "./dist/index.d.ts",
115+
"import": "./dist/index.mjs",
111116
"default": "./dist/index.js"
112117
}
113118
},

0 commit comments

Comments
 (0)