Skip to content

Commit

Permalink
stop using esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardLindhout committed Feb 14, 2022
1 parent c069c2a commit 43bfeaa
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-ridge-state",
"version": "4.2.4",
"version": "4.2.6",
"description": "react-ridge-state is a very simple global state management library for React and React Native",
"type": "module",
"main": "dist/index.js",
Expand All @@ -11,8 +11,9 @@
"scripts": {
"mocha": "mocha -r jsdom-global/register -r ts-node/register tests/**/*.mocha.tsx",
"test": "jest --maxWorkers=150",
"build": "tsc && esbuild ./src/* --outdir=dist --minify --target=es2019,node12",
"lint": "eslint src tests"
"build": "tsc && npm run minify",
"lint": "eslint src tests",
"minify": "uglifyjs --compress --mangle --output dist/index.js -- dist/index.js"
},
"devDependencies": {
"@babel/core": "^7.16.0",
Expand Down Expand Up @@ -45,7 +46,9 @@
"react-dom": "^17.0.2",
"react-test-renderer": "^17.0.2",
"ts-node": "^10.4.0",
"typescript": "^4.4.4"
"typescript": "^4.4.4",
"uglify-js": "^3.15.1",
"uglifyjs": "^2.4.11"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"outDir": "./dist",
"removeComments": true,
"jsx": "react",
"emitDeclarationOnly": true,
"emitDeclarationOnly": false,
"strict": true
},
"include": ["src/*"]
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5104,6 +5104,16 @@ typescript@^4.4.4:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.4.tgz#2cd01a1a1f160704d3101fd5a58ff0f9fcb8030c"
integrity sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==

uglify-js@^3.15.1:
version "3.15.1"
resolved "https://registry.npmjs.org/uglify-js/-/uglify-js-3.15.1.tgz#9403dc6fa5695a6172a91bc983ea39f0f7c9086d"
integrity sha512-FAGKF12fWdkpvNJZENacOH0e/83eG6JyVQyanIJaBXCN1J11TUQv1T1/z8S+Z0CG0ZPk1nPcreF/c7lrTd0TEQ==

uglifyjs@^2.4.11:
version "2.4.11"
resolved "https://registry.npmjs.org/uglifyjs/-/uglifyjs-2.4.11.tgz#3440d64e045759589524418eb641c68bb90d113e"
integrity sha1-NEDWTgRXWViVJEGOtkHGi7kNET4=

unbox-primitive@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.1.tgz#085e215625ec3162574dc8859abee78a59b14471"
Expand Down

0 comments on commit 43bfeaa

Please sign in to comment.