Skip to content

Commit

Permalink
Replace @gilbarbara/esbuilder with tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Oct 16, 2023
1 parent 416124b commit 62a4763
Show file tree
Hide file tree
Showing 3 changed files with 553 additions and 19 deletions.
32 changes: 24 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"files": [
"dist",
Expand All @@ -43,32 +45,46 @@
"@types/jest": "^29.5.5",
"@types/node": "^20.8.6",
"del-cli": "^5.1.0",
"fix-tsup-cjs": "^1.2.0",
"husky": "^8.0.3",
"is-ci-cli": "^2.2.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.0.3",
"repo-tools": "^0.2.2",
"size-limit": "^9.0.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
},
"scripts": {
"build": "npm run clean && npm run build:files && npm run build:types",
"build:files": "esbuilder --cjs --esm",
"build:types": "tsc",
"build": "npm run clean && tsup && fix-tsup-cjs",
"watch": "tsup --watch",
"clean": "del dist/*",
"watch": "npm run build:files -- --watch",
"lint": "eslint src test",
"test": "jest",
"test": "is-ci \"test:coverage\" \"test:watch\"",
"typecheck": "tsc",
"test:coverage": "jest --bail --coverage",
"test:watch": "jest --watchAll --verbose",
"format": "prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write",
"validate": "npm run lint && npm run test:coverage && npm run build && npm run size",
"validate": "npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size",
"size": "size-limit",
"prepublishOnly": "npm run validate",
"prepare": "husky install"
},
"tsup": {
"dts": true,
"entry": [
"src/index.ts"
],
"format": [
"cjs",
"esm"
],
"sourcemap": true,
"splitting": false
},
"eslintConfig": {
"extends": [
"@gilbarbara/eslint-config"
Expand Down
Loading

0 comments on commit 62a4763

Please sign in to comment.