diff --git a/CHANGES.md b/CHANGES.md index 380d8cc9..3953bcbb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,9 +11,11 @@ ## develop +- [UPDATE] tsconfig.json を統一する + - @voluntas - [UPDATE] CI の pnpm を 9 に上げる - @voluntas -- [UPDATE] Biome 1.7.1 に上げる +- [UPDATE] Biome 1.7.3 に上げる - @voluntas - [ADD] `tsc --noEmit` で型チェックを行うようにする - @voluntas diff --git a/packages/e2ee/rollup.config.mjs b/packages/e2ee/rollup.config.mjs index f9888b0d..541f8092 100644 --- a/packages/e2ee/rollup.config.mjs +++ b/packages/e2ee/rollup.config.mjs @@ -1,8 +1,8 @@ -import fs from "fs"; -import resolve from "@rollup/plugin-node-resolve"; -import typescript from "@rollup/plugin-typescript"; -import replace from "@rollup/plugin-replace"; -import pkg from "./package.json"; +import fs from 'node:fs' +import resolve from '@rollup/plugin-node-resolve' +import replace from '@rollup/plugin-replace' +import typescript from '@rollup/plugin-typescript' +import pkg from './package.json' const banner = `/** * ${pkg.name} @@ -11,12 +11,12 @@ const banner = `/** * @author: ${pkg.author} * @license: ${pkg.license} **/ -`; -const workerScript = fs.readFileSync("./_worker/sora_e2ee_worker.js", "base64"); +` +const workerScript = fs.readFileSync('./_worker/sora_e2ee_worker.js', 'base64') export default [ { - input: "src/sora_e2ee.ts", + input: 'src/sora_e2ee.ts', plugins: [ replace({ __SORA_E2EE_VERSION__: pkg.version, @@ -25,15 +25,15 @@ export default [ }), resolve(), typescript({ - tsconfig: "./tsconfig.json", + tsconfig: './tsconfig.json', }), ], output: { sourcemap: false, - file: "dist/sora_e2ee.mjs", - format: "module", - name: "SoraE2EE", + file: 'dist/sora_e2ee.mjs', + format: 'module', + name: 'SoraE2EE', banner: banner, }, }, -]; +] diff --git a/packages/e2ee/tsconfig.json b/packages/e2ee/tsconfig.json index 6b55fd86..f941f0f2 100644 --- a/packages/e2ee/tsconfig.json +++ b/packages/e2ee/tsconfig.json @@ -1,29 +1,8 @@ { + "extends": "../../tsconfig.json", "compilerOptions": { - "target": "es2020", - "module": "es2020", - "strict": true, - "declaration": true, - "strictNullChecks": true, - "importHelpers": true, - "moduleResolution": "node", - "experimentalDecorators": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "resolveJsonModule": true, - "newLine": "LF", - "lib": [ - "esnext", - "dom", - "dom.iterable", - "scripthost" - ], "declarationDir": "." }, - "include": [ - "src/sora_e2ee.ts" - ], - "exclude": [ - "node_modules" - ] + "include": ["src/sora_e2ee.ts"], + "exclude": ["node_modules"] } diff --git a/packages/sdk/tsconfig.json b/packages/sdk/tsconfig.json index 41a45e82..d1ba3ae0 100644 --- a/packages/sdk/tsconfig.json +++ b/packages/sdk/tsconfig.json @@ -1,21 +1,7 @@ { + "extends": "../../tsconfig.json", "compilerOptions": { - "target": "es2020", - "module": "es2020", - "strict": true, - "declaration": true, - "strictNullChecks": true, - "importHelpers": true, - "moduleResolution": "node", - "experimentalDecorators": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "resolveJsonModule": true, - "stripInternal": true, - "newLine": "LF", - "types": [], - "lib": ["esnext", "dom", "dom.iterable", "scripthost"], - "declarationDir": "../../" + "declarationDir": "./types" }, "include": ["src/**/*.ts"], "exclude": ["node_modules", "tests"]