From 68f6671ac8ebde4684a1c3395c01509649233aab Mon Sep 17 00:00:00 2001 From: Christiaan Landman Date: Thu, 9 May 2024 10:09:28 +0200 Subject: [PATCH] chore: central sourcemap false command and minor base tsconfig change --- .github/workflows/dev-packages.yaml | 2 +- package.json | 4 ++-- packages/common/tsconfig.json | 4 +--- packages/kysely-driver/tsconfig.json | 1 - packages/web/tsconfig.json | 1 - tsconfig.base.json | 1 + 6 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dev-packages.yaml b/.github/workflows/dev-packages.yaml index 66b51ba15..7bfedb604 100644 --- a/.github/workflows/dev-packages.yaml +++ b/.github/workflows/dev-packages.yaml @@ -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 diff --git a/package.json b/package.json index 0b6d61f01..feb77043e 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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": [], diff --git a/packages/common/tsconfig.json b/packages/common/tsconfig.json index 43686f95a..048503ff8 100644 --- a/packages/common/tsconfig.json +++ b/packages/common/tsconfig.json @@ -6,9 +6,7 @@ "types": ["node"], "rootDir": "src", "outDir": "./lib", - "lib": ["esnext"], - "declaration": true, - "strictNullChecks": true + "lib": ["esnext"] }, "include": ["src/**/*"] } diff --git a/packages/kysely-driver/tsconfig.json b/packages/kysely-driver/tsconfig.json index e626ebecb..6fce56ba4 100644 --- a/packages/kysely-driver/tsconfig.json +++ b/packages/kysely-driver/tsconfig.json @@ -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'. */, diff --git a/packages/web/tsconfig.json b/packages/web/tsconfig.json index 4accee0f0..490f99a91 100644 --- a/packages/web/tsconfig.json +++ b/packages/web/tsconfig.json @@ -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'. */, diff --git a/tsconfig.base.json b/tsconfig.base.json index 150b463d8..1747081bc 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1,6 +1,7 @@ { "compilerOptions": { "composite": true, + "declaration": true /* Generates corresponding '.d.ts' file. */, "esModuleInterop": true, "lib": ["esnext", "DOM"], "module": "esnext",