Skip to content

Commit 83b3175

Browse files
authored
Build: module (#13)
* v1.0.1-canary.1 * v1.0.1 * build: type module * build: type module * v1.0.2-canary.0 * chore: upgrade * chore: upgrade * fix module exports * chore: upgrade * Revert "chore: upgrade" This reverts commit c425bbe. * v1.0.2-canary.1
1 parent a458684 commit 83b3175

3 files changed

Lines changed: 1084 additions & 1055 deletions

File tree

packages/docs/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"author": "",
1212
"license": "ISC",
1313
"devDependencies": {
14-
"@types/react": "^17.0.0",
15-
"@types/react-dom": "^17.0.0",
14+
"@types/react": "^17",
15+
"@types/react-dom": "^17",
1616
"@storybook/addon-actions": "6.5.9",
1717
"@storybook/addon-docs": "6.5.9",
1818
"@storybook/addon-essentials": "6.5.9",
@@ -23,14 +23,14 @@
2323
"@storybook/node-logger": "6.5.9",
2424
"@storybook/react": "6.5.9",
2525
"@storybook/testing-library": "^0.0.13",
26-
"react": "^18.2.0",
27-
"react-dom": "^18.2.0",
2826
"react-scripts": "^5.0.1",
29-
"typescript": "4.7",
27+
"typescript": "^4.9.4",
3028
"webpack": "^5.75.0"
3129
},
3230
"dependencies": {
33-
"@marcus-rise/react-theme": "link:../theme"
31+
"@marcus-rise/react-theme": "link:../theme",
32+
"react": "^18.2.0",
33+
"react-dom": "^18.2.0"
3434
},
3535
"eslintConfig": {
3636
"extends": [

packages/theme/package.json

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "@marcus-rise/react-theme",
33
"license": "MIT",
4-
"version": "1.0.1",
4+
"version": "1.0.2-canary.1",
55
"description": "react theme toggle hook",
6+
"type": "module",
67
"author": {
78
"name": "Ilya Konstantinov",
89
"email": "ilya.konstantinov2022@mail.ru",
@@ -11,10 +12,16 @@
1112
"publishConfig": {
1213
"access": "public"
1314
},
14-
"source": "src/index.ts",
15-
"main": "dist/cjs/index.js",
16-
"module": "dist/esm/index.js",
17-
"types": "dist/types/index.d.ts",
15+
"source": "./src/index.ts",
16+
"types": "./dist/index.d.ts",
17+
"main": "./dist/index.js",
18+
"exports": {
19+
"./README.md": "./README.md",
20+
".": {
21+
"types": "./dist/index.d.ts",
22+
"default": "./dist/index.js"
23+
}
24+
},
1825
"scripts": {
1926
"lint": "eslint src",
2027
"dev": "parcel watch",
@@ -40,20 +47,20 @@
4047
"hook"
4148
],
4249
"devDependencies": {
43-
"@parcel/packager-ts": "2.8.0",
44-
"@parcel/transformer-typescript-types": "2.8.0",
45-
"@types/react": "^17.0.0",
46-
"@types/react-dom": "^17.0.0",
47-
"@typescript-eslint/eslint-plugin": "^5.42.1",
48-
"@typescript-eslint/parser": "^5.42.1",
49-
"eslint": "^8.27.0",
50+
"@parcel/packager-ts": "^2.8.2",
51+
"@parcel/transformer-typescript-types": "^2.8.2",
52+
"@types/react": "^17",
53+
"@types/react-dom": "^17",
54+
"@typescript-eslint/eslint-plugin": "^5.47.0",
55+
"@typescript-eslint/parser": "^5.47.0",
56+
"eslint": "^8.30.0",
5057
"eslint-config-prettier": "^8.5.0",
5158
"eslint-plugin-prettier": "^4.2.1",
52-
"eslint-plugin-react": "^7.31.10",
53-
"parcel": "^2.8.0",
54-
"prettier": "^2.7.1",
59+
"eslint-plugin-react": "^7.31.11",
60+
"parcel": "^2.8.2",
61+
"prettier": "^2.8.1",
5562
"rimraf": "^3.0.2",
56-
"typescript": "4.7"
63+
"typescript": "^4.9.4"
5764
},
5865
"peerDependencies": {
5966
"react": ">=17",

0 commit comments

Comments
 (0)