Skip to content

Commit

Permalink
chore: central sourcemap false command and minor base tsconfig change
Browse files Browse the repository at this point in the history
  • Loading branch information
Christiaan Landman authored and Christiaan Landman committed May 9, 2024
1 parent dcdae63 commit 68f6671
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build:packages --sourceMap false
run: pnpm build:packages:prod
- name: Publish
run: |
pnpm changeset version --no-git-tag --snapshot dev
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "index.js",
"scripts": {
"build:packages": "pnpm run --filter './packages/**' -r build",
// extra prod build command
"build:packages:prod": "pnpm build:packages --sourceMap false",
"build": "pnpm run -r build",
"ci:publish": "changeset publish && git push --follow-tags",
"ci:version": "changeset version && pnpm install --no-frozen-lockfile",
Expand All @@ -15,7 +15,7 @@
"docs:start": "pnpm --filter docs start",
"format": "prettier --write .",
"lint": "eslint .",
"release": "pnpm build:packages --sourceMap false && pnpm changeset publish",
"release": "pnpm build:packages:prod && pnpm changeset publish",
"test": "pnpm run -r test"
},
"keywords": [],
Expand Down
4 changes: 1 addition & 3 deletions packages/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"types": ["node"],
"rootDir": "src",
"outDir": "./lib",
"lib": ["esnext"],
"declaration": true,
"strictNullChecks": true
"lib": ["esnext"]
},
"include": ["src/**/*"]
}
1 change: 0 additions & 1 deletion packages/kysely-driver/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../../tsconfig.base",
"compilerOptions": {
"baseUrl": "./",
"declaration": true /* Generates corresponding '.d.ts' file. */,
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
"lib": ["DOM", "ES2020", "WebWorker"] /* Specify library files to be included in the compilation. */,
"module": "es2020" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
Expand Down
1 change: 0 additions & 1 deletion packages/web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"@powersync/web": ["src/index.ts"]
},
"baseUrl": "./",
"declaration": true /* Generates corresponding '.d.ts' file. */,
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
"lib": ["DOM", "ES2020", "WebWorker"] /* Specify library files to be included in the compilation. */,
"module": "es2020" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
Expand Down
1 change: 1 addition & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"composite": true,
"declaration": true /* Generates corresponding '.d.ts' file. */,
"esModuleInterop": true,
"lib": ["esnext", "DOM"],
"module": "esnext",
Expand Down

0 comments on commit 68f6671

Please sign in to comment.