Skip to content

Commit

Permalink
Revert build upgrade
Browse files Browse the repository at this point in the history
- it introduces breaking changes for older bundlers
  • Loading branch information
gilbarbara committed Sep 6, 2022
1 parent 25173c0 commit 1377c7b
Show file tree
Hide file tree
Showing 9 changed files with 641 additions and 610 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -12,7 +12,8 @@ local.properties
###########################
.tmp
coverage
dist
esm
lib
node_modules

# OS generated files #
Expand Down
1,128 changes: 594 additions & 534 deletions package-lock.json

Large diffs are not rendered by default.

13 changes: 5 additions & 8 deletions package.json
Expand Up @@ -3,17 +3,17 @@
"private": true,
"dependencies": {
"@gilbarbara/deep-equal": "^0.1.1",
"@gilbarbara/esbuilder": "^0.1.0",
"@gilbarbara/eslint-config": "^0.3.4",
"@gilbarbara/eslint-config": "^0.3.5",
"@gilbarbara/prettier-config": "^0.1.0",
"@gilbarbara/tsconfig": "^0.1.1",
"@size-limit/preset-small-lib": "^8.0.1",
"@types/jest": "^29.0.0",
"@types/node": "^18.7.14",
"@types/node": "^18.7.15",
"del-cli": "^5.0.0",
"husky": "^8.0.1",
"is-lite": "^0.9.2",
"is-lite": "^0.8.2",
"jest": "^29.0.2",
"jest-environment-jsdom": "^29.0.2",
"lerna": "^5.5.0",
"repo-tools": "^0.2.2",
"size-limit": "^8.0.1",
Expand All @@ -38,8 +38,5 @@
"@gilbarbara/eslint-config"
]
},
"prettier": "@gilbarbara/prettier-config",
"devDependencies": {
"jest-environment-jsdom": "^29.0.2"
}
"prettier": "@gilbarbara/prettier-config"
}
31 changes: 1 addition & 30 deletions packages/tree-changes-hook/package-lock.json

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

28 changes: 14 additions & 14 deletions packages/tree-changes-hook/package.json
Expand Up @@ -18,17 +18,14 @@
"url": "https://github.com/gilbarbara/tree-changes/issues"
},
"homepage": "https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme",
"main": "dist/index.js",
"module": "dist/index.mjs",
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "lib/index.js",
"module": "esm/index.js",
"files": [
"dist",
"esm",
"lib",
"src"
],
"types": "dist",
"types": "lib",
"sideEffects": false,
"peerDependencies": {
"react": "16 - 18"
Expand All @@ -46,9 +43,12 @@
"react-dom": "^18.2.0"
},
"scripts": {
"build": "npm run clean && esbuilder --cjs --esm && npm run build:types",
"build:types": "tsc --emitDeclarationOnly",
"clean": "del dist/*",
"build": "npm run clean && npm run build:cjs && npm run build:esm",
"build:cjs": "tsc",
"build:esm": "tsc -m es6 --outDir esm",
"watch:cjs": "npm run build:cjs -- -w",
"watch:esm": "npm run build:esm -- -w",
"clean": "del lib/* && del esm/*",
"lint": "eslint src test",
"test": "jest",
"test:coverage": "jest --coverage --bail",
Expand All @@ -68,12 +68,12 @@
"size-limit": [
{
"name": "cjs",
"path": "./dist/index.js",
"limit": "4 kB"
"path": "./lib/index.js",
"limit": "5 kB"
},
{
"name": "esm",
"path": "./dist/index.mjs",
"path": "./esm/index.js",
"limit": "4 kB"
}
]
Expand Down
3 changes: 2 additions & 1 deletion packages/tree-changes-hook/tsconfig.json
@@ -1,7 +1,8 @@
{
"extends": "@gilbarbara/tsconfig",
"compilerOptions": {
"outDir": "./dist"
"outDir": "./lib",
"target": "es5"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "**/*.spec.ts"]
Expand Down
14 changes: 7 additions & 7 deletions packages/tree-changes/package-lock.json

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

28 changes: 14 additions & 14 deletions packages/tree-changes/package.json
Expand Up @@ -16,26 +16,26 @@
"url": "https://github.com/gilbarbara/tree-changes/issues"
},
"homepage": "https://github.com/gilbarbara/tree-changes#readme",
"main": "dist/index.js",
"module": "dist/index.mjs",
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"main": "lib/index.js",
"module": "esm/index.js",
"files": [
"dist",
"esm",
"lib",
"src"
],
"types": "dist",
"types": "lib",
"sideEffects": false,
"dependencies": {
"@gilbarbara/deep-equal": "^0.1.1",
"is-lite": "^0.9.2"
"is-lite": "^0.8.2"
},
"scripts": {
"build": "npm run clean && esbuilder --cjs --esm && npm run build:types",
"build:types": "tsc --emitDeclarationOnly",
"clean": "del dist/*",
"build": "npm run clean && npm run build:cjs && npm run build:esm",
"build:cjs": "tsc",
"build:esm": "tsc -m es6 --outDir esm",
"watch:cjs": "npm run build:cjs -- -w",
"watch:esm": "npm run build:esm -- -w",
"clean": "del lib/* && del esm/*",
"lint": "eslint src test",
"test": "jest",
"test:coverage": "jest --coverage --bail",
Expand All @@ -55,12 +55,12 @@
"size-limit": [
{
"name": "cjs",
"path": "./dist/index.js",
"path": "./lib/index.js",
"limit": "4 kB"
},
{
"name": "esm",
"path": "./dist/index.mjs",
"path": "./esm/index.js",
"limit": "3 kB"
}
]
Expand Down
3 changes: 2 additions & 1 deletion packages/tree-changes/tsconfig.json
@@ -1,7 +1,8 @@
{
"extends": "@gilbarbara/tsconfig",
"compilerOptions": {
"outDir": "./dist"
"outDir": "./lib",
"target": "es5"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "**/*.spec.ts"]
Expand Down

0 comments on commit 1377c7b

Please sign in to comment.