Skip to content

Commit 4e1755a

Browse files
feat: migrate to es module
BREAKING CHANGE: migrate to es module
1 parent 3b242b6 commit 4e1755a

File tree

12 files changed

+2159
-2005
lines changed

12 files changed

+2159
-2005
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
**/node_modules/*
22
**/lib/*
3-
*.ejs
3+
*.js
File renamed without changes.

.lintstagedrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
'*.ts': [
33
'eslint --max-warnings=0',
44
'prettier --write',

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ coverage
99
.gitattributes
1010
.editorconfig
1111
.eslintignore
12-
.eslintrc.js
12+
.eslintrc.cjs
1313
.lintstagedrc.js
1414
commitlint.config.js
1515
rollup.config.js

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.13.0
1+
18.19.0

.prettierrc.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
module.exports = {
2-
...require('@lomray/prettier-config'),
1+
import config from '@lomray/prettier-config';
2+
3+
export default {
4+
...config,
35
};

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module.exports = {
1+
export default {
22
extends: ['@commitlint/config-conventional'],
33
};

package-lock.json

Lines changed: 2114 additions & 1934 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 25 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@lomray/react-head-manager",
33
"version": "1.0.0",
44
"description": "React meta tags manager with SSR and Suspense support.",
5+
"type": "module",
56
"main": "index.js",
67
"types": "index.d.ts",
78
"keywords": [
@@ -38,49 +39,39 @@
3839
"prepare": "husky install"
3940
},
4041
"dependencies": {
41-
"@babel/runtime": "^7.19.0",
42-
"@lomray/consistent-suspense": "^1.2.2",
43-
"html-react-parser": "^4.0.0"
42+
"html-react-parser": "^5.0.11"
4443
},
4544
"devDependencies": {
46-
"@babel/core": "^7.19.3",
47-
"@babel/plugin-proposal-class-properties": "^7.18.6",
48-
"@babel/plugin-transform-runtime": "^7.19.1",
49-
"@babel/preset-env": "^7.19.4",
50-
"@babel/preset-react": "^7.18.6",
51-
"@commitlint/cli": "^17.6.5",
52-
"@commitlint/config-conventional": "^17.6.5",
53-
"@lomray/eslint-config": "^3.0.0",
54-
"@lomray/prettier-config": "^1.2.0",
55-
"@rollup/plugin-json": "^6.0.0",
56-
"@rollup/plugin-terser": "^0.4.3",
57-
"@types/react": "^18.2.7",
58-
"@types/react-dom": "^18.2.6",
59-
"@typescript-eslint/eslint-plugin": "^5.59.7",
45+
"@commitlint/cli": "^18.4.4",
46+
"@commitlint/config-conventional": "^18.4.4",
47+
"@lomray/eslint-config": "^4.0.1",
48+
"@lomray/prettier-config": "^2.0.1",
49+
"@rollup/plugin-json": "^6.1.0",
50+
"@rollup/plugin-terser": "^0.4.4",
51+
"@types/react": "^18.2.47",
52+
"@types/react-dom": "^18.2.18",
53+
"@typescript-eslint/eslint-plugin": "^6.18.1",
6054
"@zerollup/ts-transform-paths": "^1.7.18",
61-
"eslint": "^8.41.0",
62-
"eslint-config-prettier": "^8.8.0",
63-
"eslint-plugin-import": "^2.27.5",
64-
"eslint-plugin-jsx-a11y": "^6.7.1",
65-
"eslint-plugin-prettier": "^4.2.1",
55+
"eslint": "^8.56.0",
56+
"eslint-config-prettier": "^9.1.0",
57+
"eslint-plugin-import": "^2.29.1",
58+
"eslint-plugin-jsx-a11y": "^6.8.0",
59+
"eslint-plugin-prettier": "^5.1.3",
6660
"husky": "^8.0.3",
67-
"i": "^0.3.7",
68-
"lint-staged": "^13.2.2",
69-
"npm": "^9.7.2",
70-
"prettier": "^2.8.8",
61+
"lint-staged": "^15.2.0",
62+
"prettier": "^3.1.1",
7163
"react": "^18.2.0",
72-
"rollup": "2.79.1",
73-
"rollup-plugin-copy": "^3.4.0",
64+
"rollup": "^4.9.4",
65+
"rollup-plugin-copy": "^3.5.0",
7466
"rollup-plugin-folder-input": "^1.0.1",
7567
"rollup-plugin-peer-deps-external": "^2.2.4",
76-
"rollup-plugin-ts": "^3.2.0",
77-
"semantic-release": "^21.0.2",
78-
"ttypescript": "^1.5.15",
79-
"typescript": "^4.7.4"
68+
"rollup-plugin-ts": "^3.4.5",
69+
"semantic-release": "^21.1.2",
70+
"typescript": "^4.9.5"
8071
},
8172
"peerDependencies": {
73+
"@lomray/consistent-suspense": ">=2.0.1",
8274
"react": ">=17.0.2",
83-
"react-dom": ">=17.0.2",
84-
"tslib": "^2.5.2"
75+
"react-dom": ">=17.0.2"
8576
}
8677
}

release.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
branches: [
33
'prod',
44
// {

0 commit comments

Comments
 (0)