Skip to content

Commit

Permalink
Merge pull request #518 from shiguredo/feature/tsconfig
Browse files Browse the repository at this point in the history
Feature/tsconfig
  • Loading branch information
voluntas authored May 11, 2024
2 parents 1e7171e + d2cd592 commit 04f38da
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 54 deletions.
4 changes: 3 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 13 additions & 13 deletions packages/e2ee/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -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}
Expand All @@ -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,
Expand All @@ -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,
},
},
];
]
27 changes: 3 additions & 24 deletions packages/e2ee/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"]
}
18 changes: 2 additions & 16 deletions packages/sdk/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down

0 comments on commit 04f38da

Please sign in to comment.