Skip to content

Commit

Permalink
Improved build:packages:prod command. Tsc output should no longer hav…
Browse files Browse the repository at this point in the history
…e sourcemaps for prod build.
  • Loading branch information
Chriztiaan committed Sep 20, 2024
1 parent d5f755d commit 1f91dbd
Show file tree
Hide file tree
Showing 10 changed files with 18,839 additions and 24,493 deletions.
11 changes: 11 additions & 0 deletions .changeset/yellow-meals-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@powersync/kysely-driver': patch
'@powersync/react-native': patch
'@powersync/attachments': patch
'@powersync/common': patch
'@powersync/react': patch
'@powersync/vue': patch
'@powersync/web': patch
---

Ensuring sourcemaps are not included for packages.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"main": "index.js",
"scripts": {
"build:packages": "pnpm run --filter './packages/**' -r build",
"build:packages:prod": "pnpm run --filter './packages/**' -r build:prod",
"clean:packages": "pnpm run --filter './packages/**' -r clean",
"build:packages:prod": "pnpm build:packages --sourceMap false",
"watch:packages": "pnpm run --parallel --filter './packages/**' -r build -w",
"changeset:version": "pnpm changeset version && pnpm install --lockfile-only --frozen-lockfile=false",
"build": "pnpm run -r build",
Expand Down
1 change: 1 addition & 0 deletions packages/attachments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
],
"scripts": {
"build": "tsc -b",
"build:prod": "tsc -b --sourceMap false",
"clean": "rm -rf lib tsconfig.tsbuildinfo",
"watch": "tsc -b -w"
},
Expand Down
1 change: 1 addition & 0 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"homepage": "https://docs.powersync.com",
"scripts": {
"build": "tsc -b && rollup -c rollup.config.mjs",
"build:prod": "tsc -b --sourceMap false && rollup -c rollup.config.mjs",
"clean": "rm -rf lib dist tsconfig.tsbuildinfo",
"test": "vitest"
},
Expand Down
1 change: 1 addition & 0 deletions packages/kysely-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"homepage": "https://docs.powersync.com",
"scripts": {
"build": "tsc --build",
"build:prod": "tsc --build --sourceMap false",
"clean": "rm -rf lib tsconfig.tsbuildinfo",
"watch": "tsc --build -w",
"test": "pnpm build && vitest"
Expand Down
3 changes: 2 additions & 1 deletion packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"scripts": {
"build": "tsc -b && rollup -c rollup.config.mjs",
"clean": "rm -rf lib tsconfig.tsbuildinfo dist",
"build:prod": "tsc -b --sourceMap false && rollup -c rollup.config.mjs",
"clean": "rm -rf lib dist tsconfig.tsbuildinfo dist",
"watch": "tsc -b -w"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
],
"scripts": {
"build": "tsc -b",
"build:prod": "tsc -b --sourceMap false",
"clean": "rm -rf lib tsconfig.tsbuildinfo",
"test": "vitest",
"watch": "tsc -b -w"
Expand Down
1 change: 1 addition & 0 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
],
"scripts": {
"build": "tsc -b",
"build:prod": "tsc -b --sourceMap false",
"clean": "rm -rf lib tsconfig.tsbuildinfo",
"watch": "tsc -b -w",
"test": "vitest"
Expand Down
5 changes: 3 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
"build:tsc": "tsc --build",
"build:webpack-main": "webpack",
"build:webpack-workers": "webpack --config webpack.workers.config.js",
"build": "npm run build:tsc -- \"$@\" && npm run build:webpack-main && npm run build:webpack-workers",
"clean": "rm -rf lib tsconfig.tsbuildinfo",
"build": "pnpm run build:tsc && pnpm run build:webpack-main && pnpm run build:webpack-workers",
"build:prod": "pnpm run build:tsc --sourceMap false && pnpm run build:webpack-main && pnpm run build:webpack-workers",
"clean": "rm -rf lib dist tsconfig.tsbuildinfo",
"watch": "tsc --build -w",
"test": "pnpm build && vitest"
},
Expand Down
43,306 changes: 18,817 additions & 24,489 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 1f91dbd

Please sign in to comment.