Skip to content

Commit

Permalink
build: enable sourcemaps (orval-labs#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Butler authored Jan 22, 2024
1 parent c41635b commit 0af0ead
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"dist"
],
"scripts": {
"build": "tsup ./src/index.ts --target node12 --clean --dts",
"dev": "tsup ./src/index.ts --target node12 --clean --watch src",
"build": "tsup ./src/index.ts --target node12 --clean --sourcemap --dts",
"dev": "tsup ./src/index.ts --target node12 --clean --sourcemap --watch src",
"lint": "eslint src/**/*.ts"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/axios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"dist"
],
"scripts": {
"build": "tsup ./src/index.ts --target node12 --clean --dts",
"dev": "tsup ./src/index.ts --target node12 --clean --watch src",
"build": "tsup ./src/index.ts --target node12 --clean --sourcemap --dts",
"dev": "tsup ./src/index.ts --target node12 --clean --sourcemap --watch src",
"lint": "eslint src/**/*.ts"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"dist"
],
"scripts": {
"build": "tsup ./src/index.ts --clean --dts --sourcemap",
"dev": "tsup ./src/index.ts --clean --watch src",
"build": "tsup ./src/index.ts --clean --sourcemap --dts",
"dev": "tsup ./src/index.ts --clean --sourcemap --watch src",
"lint": "eslint src/**/*.ts",
"test": "vitest --global test.ts"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"dist"
],
"scripts": {
"build": "tsup ./src/index.ts --target node12 --clean --dts",
"dev": "tsup ./src/index.ts --target node12 --clean --watch src",
"build": "tsup ./src/index.ts --target node12 --clean --sourcemap --dts",
"dev": "tsup ./src/index.ts --target node12 --clean --sourcemap --watch src",
"lint": "eslint src/**/*.ts"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/orval/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"url": "https://github.com/anymaniax/orval"
},
"scripts": {
"build": "tsup ./src/bin/orval.ts ./src/index.ts --target node12 --clean --dts",
"dev": "tsup ./src/bin/orval.ts ./src/index.ts --target node12 --clean --watch ./src --onSuccess 'yarn generate-api'",
"build": "tsup ./src/bin/orval.ts ./src/index.ts --target node12 --clean --sourcemap --dts",
"dev": "tsup ./src/bin/orval.ts ./src/index.ts --target node12 --clean --sourcemap --watch ./src --onSuccess 'yarn generate-api'",
"lint": "eslint src/**/*.ts",
"generate-api": "node ./dist/bin/orval.js --config ../../samples/react-query/basic/orval.config.ts",
"test": "tsc --noEmit && vitest --passWithNoTests"
Expand Down
4 changes: 2 additions & 2 deletions packages/query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"dist"
],
"scripts": {
"build": "tsup ./src/index.ts --target node12 --clean --dts",
"dev": "tsup ./src/index.ts --target node12 --clean --watch src",
"build": "tsup ./src/index.ts --target node12 --clean --sourcemap --dts",
"dev": "tsup ./src/index.ts --target node12 --clean --sourcemap --watch src",
"lint": "eslint src/**/*.ts",
"test": "vitest"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/swr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"dist"
],
"scripts": {
"build": "tsup ./src/index.ts --target node12 --clean --dts",
"dev": "tsup ./src/index.ts --target node12 --clean --watch src",
"build": "tsup ./src/index.ts --target node12 --clean --sourcemap --dts",
"dev": "tsup ./src/index.ts --target node12 --clean --sourcemap --watch src",
"lint": "eslint src/**/*.ts"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/zod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"scripts": {
"build": "tsup ./src/index.ts --target node12 --clean --dts --sourcemap",
"dev": "tsup ./src/index.ts --target node12 --clean --watch src",
"dev": "tsup ./src/index.ts --target node12 --clean --watch --sourcemap src",
"lint": "eslint src/**/*.ts",
"test": "vitest --global test.ts"
},
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"preserveWatchOutput": true,
"skipLibCheck": true,
"strict": true,
"resolveJsonModule": true
"resolveJsonModule": true,
"sourceMap": true
}
}

0 comments on commit 0af0ead

Please sign in to comment.