Skip to content

Commit 037f291

Browse files
committed
Move to proper monorepo
1 parent 6ff7a8e commit 037f291

23 files changed

+245
-607
lines changed

β€Ž.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ dist
77
/headless
88
.vscode
99
.vercel
10+
package/headless
11+
package/dist

β€Žpackage.json

+8-97
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
2-
"name": "react-hot-toast",
3-
"description": "Smoking hot React Notifications. Lightweight, customizable and beautiful by default.",
4-
"version": "2.4.1",
2+
"name": "rht",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"build": "pnpm --filter react-hot-toast build && pnpm --filter site build"
8+
},
59
"author": "Timo Lins",
610
"license": "MIT",
711
"repository": "timolins/react-hot-toast",
@@ -10,98 +14,5 @@
1014
"notifications",
1115
"toast",
1216
"snackbar"
13-
],
14-
"main": "dist/index.js",
15-
"types": "dist/index.d.ts",
16-
"exports": {
17-
"./package.json": "./package.json",
18-
".": {
19-
"types": "./dist/index.d.ts",
20-
"import": "./dist/index.mjs",
21-
"require": "./dist/index.js"
22-
},
23-
"./headless": {
24-
"types": "./headless/index.d.ts",
25-
"import": "./headless/index.mjs",
26-
"require": "./headless/index.js"
27-
}
28-
},
29-
"files": [
30-
"headless",
31-
"dist",
32-
"src"
33-
],
34-
"engines": {
35-
"node": ">=10"
36-
},
37-
"scripts": {
38-
"start": "tsup --watch",
39-
"build": "tsup",
40-
"test": "jest --runInBand",
41-
"setup": "pnpm i && cd site && pnpm i && cd .. && pnpm run link",
42-
"link": "pnpm link ./site/node_modules/react && pnpm link ./site/node_modules/react-dom",
43-
"size": "size-limit"
44-
},
45-
"husky": {
46-
"hooks": {
47-
"pre-commit": "prettier src --ignore-unknown --write"
48-
}
49-
},
50-
"prettier": {
51-
"printWidth": 80,
52-
"semi": true,
53-
"singleQuote": true,
54-
"arrowParens": "always",
55-
"trailingComma": "es5"
56-
},
57-
"size-limit": [
58-
{
59-
"path": "dist/index.js",
60-
"limit": "5.5 KB"
61-
},
62-
{
63-
"path": "dist/index.mjs",
64-
"limit": "5 KB"
65-
},
66-
{
67-
"path": "headless/index.js",
68-
"limit": "2 KB"
69-
},
70-
{
71-
"path": "headless/index.mjs",
72-
"limit": "2 KB"
73-
}
74-
],
75-
"devDependencies": {
76-
"@jest/types": "^28.1.3",
77-
"@size-limit/preset-small-lib": "^7.0.8",
78-
"@testing-library/jest-dom": "^5.16.4",
79-
"@testing-library/react": "^13.3.0",
80-
"@types/jest": "^28.1.5",
81-
"@types/react": "^18.2.45",
82-
"@types/react-dom": "^18.2.17",
83-
"@types/testing-library__jest-dom": "^5.14.5",
84-
"csstype": "^3.1.0",
85-
"jest": "^28.1.3",
86-
"jest-environment-jsdom": "^28.1.3",
87-
"prettier": "^2.7.1",
88-
"react": "^18.2.0",
89-
"react-dom": "^18.2.0",
90-
"size-limit": "^7.0.8",
91-
"ts-jest": "^28.0.6",
92-
"tslib": "^2.4.0",
93-
"tsup": "^8.0.1",
94-
"typescript": "^5.0.4"
95-
},
96-
"dependencies": {
97-
"goober": "^2.1.10"
98-
},
99-
"peerDependencies": {
100-
"react": ">=16",
101-
"react-dom": ">=16"
102-
},
103-
"resolutions": {
104-
"react": "^18.2.0",
105-
"react-dom": "^18.2.0"
106-
}
17+
]
10718
}
File renamed without changes.

β€Žpackage/package.json

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"name": "react-hot-toast",
3+
"description": "Smoking hot React Notifications. Lightweight, customizable and beautiful by default.",
4+
"version": "2.4.1",
5+
"author": "Timo Lins",
6+
"license": "MIT",
7+
"repository": "timolins/react-hot-toast",
8+
"keywords": [
9+
"react",
10+
"notifications",
11+
"toast",
12+
"snackbar"
13+
],
14+
"main": "dist/index.js",
15+
"types": "dist/index.d.ts",
16+
"exports": {
17+
"./package.json": "./package.json",
18+
".": {
19+
"types": "./dist/index.d.ts",
20+
"import": "./dist/index.mjs",
21+
"require": "./dist/index.js"
22+
},
23+
"./headless": {
24+
"types": "./headless/index.d.ts",
25+
"import": "./headless/index.mjs",
26+
"require": "./headless/index.js"
27+
}
28+
},
29+
"files": [
30+
"headless",
31+
"dist",
32+
"src"
33+
],
34+
"engines": {
35+
"node": ">=10"
36+
},
37+
"scripts": {
38+
"start": "tsup --watch",
39+
"build": "tsup",
40+
"test": "jest --runInBand",
41+
"setup": "pnpm i && cd site && pnpm i && cd .. && pnpm run link",
42+
"link": "pnpm link ./site/node_modules/react && pnpm link ./site/node_modules/react-dom",
43+
"size": "size-limit"
44+
},
45+
"husky": {
46+
"hooks": {
47+
"pre-commit": "prettier src --ignore-unknown --write"
48+
}
49+
},
50+
"prettier": {
51+
"printWidth": 80,
52+
"semi": true,
53+
"singleQuote": true,
54+
"arrowParens": "always",
55+
"trailingComma": "es5"
56+
},
57+
"size-limit": [
58+
{
59+
"path": "dist/index.js",
60+
"limit": "5.5 KB"
61+
},
62+
{
63+
"path": "dist/index.mjs",
64+
"limit": "5 KB"
65+
},
66+
{
67+
"path": "headless/index.js",
68+
"limit": "2 KB"
69+
},
70+
{
71+
"path": "headless/index.mjs",
72+
"limit": "2 KB"
73+
}
74+
],
75+
"devDependencies": {
76+
"@jest/types": "^28.1.3",
77+
"@size-limit/preset-small-lib": "^7.0.8",
78+
"@testing-library/jest-dom": "^5.16.4",
79+
"@testing-library/react": "^13.3.0",
80+
"@types/jest": "^28.1.5",
81+
"@types/react": "^18.2.45",
82+
"@types/react-dom": "^18.2.17",
83+
"@types/testing-library__jest-dom": "^5.14.5",
84+
"csstype": "^3.1.0",
85+
"jest": "^28.1.3",
86+
"jest-environment-jsdom": "^28.1.3",
87+
"prettier": "^2.7.1",
88+
"react": "^18.2.0",
89+
"react-dom": "^18.2.0",
90+
"size-limit": "^7.0.8",
91+
"ts-jest": "^28.0.6",
92+
"tslib": "^2.4.0",
93+
"tsup": "^8.0.1",
94+
"typescript": "^5.0.4"
95+
},
96+
"dependencies": {
97+
"goober": "^2.1.10"
98+
},
99+
"peerDependencies": {
100+
"react": ">=16",
101+
"react-dom": ">=16"
102+
},
103+
"resolutions": {
104+
"react": "^18.2.0",
105+
"react-dom": "^18.2.0"
106+
}
107+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
Β (0)