Skip to content

Commit

Permalink
Merge pull request #205 from timolins/new-bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
timolins authored Jul 12, 2022
2 parents 3561873 + 780e3c1 commit 2fb2010
Show file tree
Hide file tree
Showing 22 changed files with 921 additions and 9,207 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI
on: [push]
jobs:
build:
name: Build, lint, and test
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
node_modules
.cache
dist
/headless
.vscode
.vercel
54 changes: 35 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "react-hot-toast",
"description": "Smoking hot React Notifications. Lightweight, customizable and beautiful by default.",
"version": "2.2.0",
"version": "2.3.0-beta.1",
"author": "Timo Lins",
"license": "MIT",
"sideEffects": false,
"repository": "timolins/react-hot-toast",
"keywords": [
"react",
Expand All @@ -13,29 +12,39 @@
"snackbar"
],
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"types": "dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./headless": {
"types": "./headless/index.d.ts",
"import": "./headless/index.mjs",
"require": "./headless/index.js"
}
},
"files": [
"headless",
"dist",
"src",
"types"
"src"
],
"engines": {
"node": ">=10"
},
"scripts": {
"start": "tsdx watch",
"build": "tsdx build",
"lint": "tsdx lint",
"start": "tsup --watch",
"build": "tsup",
"test": "echo \"No test specified\"",
"setup": "pnpm i && cd site && pnpm i && cd .. && pnpm run link",
"link": "pnpm link ./site/node_modules/react && pnpm link ./site/node_modules/react-dom",
"prepare": "tsdx build",
"size": "size-limit",
"analyze": "size-limit --why"
"size": "size-limit"
},
"husky": {
"hooks": {
"pre-commit": "tsdx lint"
"pre-commit": "prettier src --ignore-unknown --write"
}
},
"prettier": {
Expand All @@ -45,26 +54,33 @@
"arrowParens": "always",
"trailingComma": "es5"
},
"module": "dist/react-hot-toast.esm.js",
"size-limit": [
{
"path": "dist/react-hot-toast.cjs.production.min.js",
"path": "dist/index.js",
"limit": "5 KB"
},
{
"path": "dist/react-hot-toast.esm.js",
"path": "dist/index.mjs",
"limit": "5 KB"
},
{
"path": "headless/index.js",
"limit": "2 KB"
},
{
"path": "headless/index.mjs",
"limit": "2 KB"
}
],
"devDependencies": {
"@size-limit/preset-small-lib": "^4.9.1",
"@size-limit/preset-small-lib": "^7.0.8",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"csstype": "^3.0.7",
"size-limit": "^4.9.1",
"prettier": "^2.7.1",
"size-limit": "^7.0.8",
"tsup": "^6.1.3",
"typescript": "^4.7.4",
"tsdx": "^0.14.1"
"typescript": "^4.7.4"
},
"dependencies": {
"goober": "^2.1.10"
Expand Down
Loading

1 comment on commit 2fb2010

@vercel
Copy link

@vercel vercel bot commented on 2fb2010 Jul 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.