Skip to content

Commit f05c7ee

Browse files
committed
chore: update packages for esm
BREAKING CHANGE: The package won't support CJS anymore.
1 parent 0c940d0 commit f05c7ee

File tree

8 files changed

+2284
-2072
lines changed

8 files changed

+2284
-2072
lines changed

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Setup
1111
uses: actions/setup-node@v2
1212
with:
13-
node-version: '16'
13+
node-version: '18'
1414
- uses: actions/cache@v2
1515
id: yarn-cache
1616
with:

.nova/Configuration.json

Lines changed: 0 additions & 5 deletions
This file was deleted.
File renamed without changes.

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "module",
55
"exports": {
66
".": {
7-
"import": "./build/index.js",
7+
"import": "./lib/index.js",
88
"types": "./types/index.d.ts"
99
}
1010
},
@@ -31,26 +31,26 @@
3131
},
3232
"devDependencies": {
3333
"@adminjs/design-system": "^3.0.4",
34-
"@commitlint/cli": "^8.3.5",
35-
"@commitlint/config-conventional": "^8.3.4",
36-
"@semantic-release/git": "^9.0.0",
37-
"@types/jest": "^26.0.14",
38-
"@types/lodash": "^4.14.186",
39-
"@typescript-eslint/eslint-plugin": "^5.16.0",
40-
"@typescript-eslint/parser": "^5.16.0",
34+
"@commitlint/cli": "^17.4.4",
35+
"@commitlint/config-conventional": "^17.4.4",
36+
"@semantic-release/git": "^10.0.1",
37+
"@types/jest": "^29.5.0",
38+
"@types/lodash": "^4.14.191",
39+
"@typescript-eslint/eslint-plugin": "^5.56.0",
40+
"@typescript-eslint/parser": "^5.56.0",
4141
"adminjs": "^6.4.1",
4242
"dotenv-cli": "^7.1.0",
43-
"eslint": "^8.11.0",
44-
"eslint-config-prettier": "^8.5.0",
45-
"eslint-plugin-import": "^2.25.4",
46-
"eslint-plugin-prettier": "^3.1.4",
47-
"eslint-plugin-react": "^7.29.4",
43+
"eslint": "^8.36.0",
44+
"eslint-config-prettier": "^8.8.0",
45+
"eslint-plugin-import": "^2.27.5",
46+
"eslint-plugin-prettier": "^4.2.1",
47+
"eslint-plugin-react": "^7.32.2",
4848
"husky": "^4.3.0",
4949
"jest": "^29.5.0",
50-
"prettier": "^2.0.5",
51-
"rimraf": "^3.0.2",
52-
"semantic-release": "^17.0.7",
53-
"semantic-release-slack-bot": "^1.6.2",
50+
"prettier": "^2.8.6",
51+
"rimraf": "^4.4.0",
52+
"semantic-release": "^20.1.3",
53+
"semantic-release-slack-bot": "^4.0.0",
5454
"ts-jest": "^29.0.5",
5555
"ts-node": "^10.9.1",
5656
"typescript": "^4.9.5"

src/components/RecordDifference.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
TableHead,
1010
TableRow,
1111
} from '@adminjs/design-system';
12-
import styled from 'styled-components';
12+
import { styled } from 'styled-components';
1313

1414
const Cell = styled(TableCell)`
1515
width: 100%;

test/logger.test.ts

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

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es2017",
3+
"target": "esnext",
44
"esModuleInterop": true,
55
"jsx": "react",
66
"declaration": true,

0 commit comments

Comments
 (0)