diff --git a/.changeset/dry-keys-speak.md b/.changeset/dry-keys-speak.md new file mode 100644 index 0000000..8e1b754 --- /dev/null +++ b/.changeset/dry-keys-speak.md @@ -0,0 +1,11 @@ +--- +"ghproxy-gist-raw": patch +"ghproxy-releases": patch +"douban2rarbg": patch +"ghproxy-raw": patch +"exclude-dv": patch +"template": patch +"down-git": patch +--- + +Set `@mogeko/tsconfig` to default `tsconfig.json`. diff --git a/.changeset/long-rules-knock.md b/.changeset/long-rules-knock.md new file mode 100644 index 0000000..63fe2d3 --- /dev/null +++ b/.changeset/long-rules-knock.md @@ -0,0 +1,5 @@ +--- +"better-steam-rating": patch +--- + +Remove redundant devDependencies `tsconfig`. diff --git a/package.json b/package.json index 290b032..2dc9f3f 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "cov": "turbo run cov", "meta": "vite-node ./scripts/meta.ts", "lint": "turbo run lint", - "fmt": "turbo run fmt" + "fmt": "turbo run fmt", + "changeset": "changeset" }, "devDependencies": { "@changesets/changelog-github": "^0.5.0", diff --git a/packages/_template/package.json b/packages/_template/package.json index 0f17096..604b4b8 100644 --- a/packages/_template/package.json +++ b/packages/_template/package.json @@ -29,8 +29,8 @@ "fmt": "prettier --write ." }, "devDependencies": { + "@mogeko/tsconfig": "^0.0.4", "@types/node": "^20.14.2", - "tsconfig": "workspace:*", "typescript": "^5.4.5", "vite": "^5.3.1", "vite-plugin-monkey": "^4.0.3" diff --git a/packages/_template/tsconfig.json b/packages/_template/tsconfig.json index 977817e..f61a240 100644 --- a/packages/_template/tsconfig.json +++ b/packages/_template/tsconfig.json @@ -1,10 +1,12 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "tsconfig/vite.tsconfig.json", + "extends": "@mogeko/tsconfig/default.tsconfig.json", "compilerOptions": { + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "types": ["vite/client", "vite-plugin-monkey/dist/client"], "paths": { "@/*": ["src/*"] }, "baseUrl": "." }, - "include": ["src", "*.config.ts"], + "include": ["src/**/*", "*.config.ts"], "exclude": ["node_modules"] } diff --git a/packages/_tsconfig/package.json b/packages/_tsconfig/package.json deleted file mode 100644 index bcb9042..0000000 --- a/packages/_tsconfig/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "tsconfig", - "private": true, - "scripts": { - "lint": "prettier --check .", - "fmt": "prettier --write ." - }, - "devDependencies": { - "@tsconfig/recommended": "^1.0.6" - } -} diff --git a/packages/_tsconfig/rollup.tsconfig.json b/packages/_tsconfig/rollup.tsconfig.json deleted file mode 100644 index 7f4d37e..0000000 --- a/packages/_tsconfig/rollup.tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "display": "TypeScript Configure for Rollup", - - "extends": "@tsconfig/recommended/tsconfig.json", - "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "noEmit": true, - "module": "esnext", - "moduleResolution": "node", - "resolveJsonModule": true, - "isolatedModules": true - }, - "exclude": ["node_modules"] -} diff --git a/packages/_tsconfig/vite.tsconfig.json b/packages/_tsconfig/vite.tsconfig.json deleted file mode 100644 index 17edea4..0000000 --- a/packages/_tsconfig/vite.tsconfig.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "display": "TypeScript Configure for Vite", - - "compilerOptions": { - "target": "ES2020", - "useDefineForClassFields": true, - "module": "ESNext", - "lib": ["ES2020", "DOM", "DOM.Iterable"], - "types": ["vite/client"], - "skipLibCheck": true, - - /* Bundler mode */ - "moduleResolution": "bundler", - "allowImportingTsExtensions": true, - "resolveJsonModule": true, - "isolatedModules": true, - "noEmit": true, - - /* Linting */ - "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true - }, - "exclude": ["node_modules"] -} diff --git a/packages/better-steam-rating/package.json b/packages/better-steam-rating/package.json index dfcc57e..2f8163f 100644 --- a/packages/better-steam-rating/package.json +++ b/packages/better-steam-rating/package.json @@ -31,7 +31,6 @@ }, "devDependencies": { "@types/node": "^20.14.2", - "tsconfig": "workspace:*", "typescript": "^5.4.5", "vite": "^5.3.1", "vite-plugin-monkey": "^4.0.3" diff --git a/packages/douban2rarbg/package.json b/packages/douban2rarbg/package.json index f36e1a9..c5a5f65 100644 --- a/packages/douban2rarbg/package.json +++ b/packages/douban2rarbg/package.json @@ -33,11 +33,11 @@ "fmt": "prettier --write ." }, "devDependencies": { + "@mogeko/tsconfig": "^0.0.4", "@types/jsdom": "^21.1.7", "@types/node": "^20.14.2", "@vitest/coverage-v8": "^1.6.0", "jsdom": "^24.1.0", - "tsconfig": "workspace:*", "typescript": "^5.4.5", "vite": "^5.3.1", "vite-plugin-monkey": "^4.0.3", diff --git a/packages/douban2rarbg/tsconfig.json b/packages/douban2rarbg/tsconfig.json index d85482e..e357f68 100644 --- a/packages/douban2rarbg/tsconfig.json +++ b/packages/douban2rarbg/tsconfig.json @@ -1,7 +1,8 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "tsconfig/vite.tsconfig.json", + "extends": "@mogeko/tsconfig/default.tsconfig.json", "compilerOptions": { + "lib": ["ES2020", "DOM", "DOM.Iterable"], "types": [ "vite/client", "vite-plugin-monkey/dist/client", @@ -10,6 +11,6 @@ "paths": { "@/*": ["src/*"] }, "baseUrl": "." }, - "include": ["src", "*.config.ts"], + "include": ["src/**/*", "*.config.ts"], "exclude": ["node_modules"] } diff --git a/packages/down-git/package.json b/packages/down-git/package.json index 6f923ca..d0f57a7 100644 --- a/packages/down-git/package.json +++ b/packages/down-git/package.json @@ -30,8 +30,8 @@ "fmt": "prettier --write ." }, "devDependencies": { + "@mogeko/tsconfig": "^0.0.4", "@types/node": "^20.14.2", - "tsconfig": "workspace:*", "typescript": "^5.4.5", "vite": "^5.3.1", "vite-plugin-monkey": "^4.0.3" diff --git a/packages/down-git/tsconfig.json b/packages/down-git/tsconfig.json index 977817e..f61a240 100644 --- a/packages/down-git/tsconfig.json +++ b/packages/down-git/tsconfig.json @@ -1,10 +1,12 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "tsconfig/vite.tsconfig.json", + "extends": "@mogeko/tsconfig/default.tsconfig.json", "compilerOptions": { + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "types": ["vite/client", "vite-plugin-monkey/dist/client"], "paths": { "@/*": ["src/*"] }, "baseUrl": "." }, - "include": ["src", "*.config.ts"], + "include": ["src/**/*", "*.config.ts"], "exclude": ["node_modules"] } diff --git a/packages/exclude-dv/package.json b/packages/exclude-dv/package.json index 817fc11..8cf8dbb 100644 --- a/packages/exclude-dv/package.json +++ b/packages/exclude-dv/package.json @@ -30,8 +30,8 @@ "fmt": "prettier --write ." }, "devDependencies": { + "@mogeko/tsconfig": "^0.0.4", "@types/node": "^20.14.2", - "tsconfig": "workspace:*", "typescript": "^5.4.5", "vite": "^5.3.1", "vite-plugin-monkey": "^4.0.3" diff --git a/packages/exclude-dv/tsconfig.json b/packages/exclude-dv/tsconfig.json index 977817e..f61a240 100644 --- a/packages/exclude-dv/tsconfig.json +++ b/packages/exclude-dv/tsconfig.json @@ -1,10 +1,12 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "tsconfig/vite.tsconfig.json", + "extends": "@mogeko/tsconfig/default.tsconfig.json", "compilerOptions": { + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "types": ["vite/client", "vite-plugin-monkey/dist/client"], "paths": { "@/*": ["src/*"] }, "baseUrl": "." }, - "include": ["src", "*.config.ts"], + "include": ["src/**/*", "*.config.ts"], "exclude": ["node_modules"] } diff --git a/packages/ghproxy-gist-raw/package.json b/packages/ghproxy-gist-raw/package.json index 762333a..e1624ee 100644 --- a/packages/ghproxy-gist-raw/package.json +++ b/packages/ghproxy-gist-raw/package.json @@ -31,8 +31,8 @@ "fmt": "prettier --write ." }, "devDependencies": { + "@mogeko/tsconfig": "^0.0.4", "@types/node": "^20.14.2", - "tsconfig": "workspace:*", "typescript": "^5.4.5", "vite": "^5.3.1", "vite-plugin-monkey": "^4.0.3" diff --git a/packages/ghproxy-gist-raw/tsconfig.json b/packages/ghproxy-gist-raw/tsconfig.json index 977817e..f61a240 100644 --- a/packages/ghproxy-gist-raw/tsconfig.json +++ b/packages/ghproxy-gist-raw/tsconfig.json @@ -1,10 +1,12 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "tsconfig/vite.tsconfig.json", + "extends": "@mogeko/tsconfig/default.tsconfig.json", "compilerOptions": { + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "types": ["vite/client", "vite-plugin-monkey/dist/client"], "paths": { "@/*": ["src/*"] }, "baseUrl": "." }, - "include": ["src", "*.config.ts"], + "include": ["src/**/*", "*.config.ts"], "exclude": ["node_modules"] } diff --git a/packages/ghproxy-raw/package.json b/packages/ghproxy-raw/package.json index dc6e2b7..0317c29 100644 --- a/packages/ghproxy-raw/package.json +++ b/packages/ghproxy-raw/package.json @@ -30,8 +30,8 @@ "fmt": "prettier --write ." }, "devDependencies": { + "@mogeko/tsconfig": "^0.0.4", "@types/node": "^20.14.2", - "tsconfig": "workspace:*", "typescript": "^5.4.5", "vite": "^5.3.1", "vite-plugin-monkey": "^4.0.3" diff --git a/packages/ghproxy-raw/tsconfig.json b/packages/ghproxy-raw/tsconfig.json index 977817e..f61a240 100644 --- a/packages/ghproxy-raw/tsconfig.json +++ b/packages/ghproxy-raw/tsconfig.json @@ -1,10 +1,12 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "tsconfig/vite.tsconfig.json", + "extends": "@mogeko/tsconfig/default.tsconfig.json", "compilerOptions": { + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "types": ["vite/client", "vite-plugin-monkey/dist/client"], "paths": { "@/*": ["src/*"] }, "baseUrl": "." }, - "include": ["src", "*.config.ts"], + "include": ["src/**/*", "*.config.ts"], "exclude": ["node_modules"] } diff --git a/packages/ghproxy-releases/package.json b/packages/ghproxy-releases/package.json index 787f8a9..dab1a72 100644 --- a/packages/ghproxy-releases/package.json +++ b/packages/ghproxy-releases/package.json @@ -30,8 +30,8 @@ "fmt": "prettier --write ." }, "devDependencies": { + "@mogeko/tsconfig": "^0.0.4", "@types/node": "^20.14.2", - "tsconfig": "workspace:*", "typescript": "^5.4.5", "vite": "^5.3.1", "vite-plugin-monkey": "^4.0.3" diff --git a/packages/ghproxy-releases/tsconfig.json b/packages/ghproxy-releases/tsconfig.json index 977817e..f61a240 100644 --- a/packages/ghproxy-releases/tsconfig.json +++ b/packages/ghproxy-releases/tsconfig.json @@ -1,10 +1,12 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "tsconfig/vite.tsconfig.json", + "extends": "@mogeko/tsconfig/default.tsconfig.json", "compilerOptions": { + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "types": ["vite/client", "vite-plugin-monkey/dist/client"], "paths": { "@/*": ["src/*"] }, "baseUrl": "." }, - "include": ["src", "*.config.ts"], + "include": ["src/**/*", "*.config.ts"], "exclude": ["node_modules"] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9abfe79..04bef1c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,12 +32,12 @@ importers: packages/_template: devDependencies: + '@mogeko/tsconfig': + specifier: ^0.0.4 + version: 0.0.4 '@types/node': specifier: ^20.14.2 version: 20.14.2 - tsconfig: - specifier: workspace:* - version: link:../_tsconfig typescript: specifier: ^5.4.5 version: 5.4.5 @@ -48,20 +48,11 @@ importers: specifier: ^4.0.3 version: 4.0.3(vite@5.3.1(@types/node@20.14.2)) - packages/_tsconfig: - devDependencies: - '@tsconfig/recommended': - specifier: ^1.0.6 - version: 1.0.6 - packages/better-steam-rating: devDependencies: '@types/node': specifier: ^20.14.2 version: 20.14.2 - tsconfig: - specifier: workspace:* - version: link:../_tsconfig typescript: specifier: ^5.4.5 version: 5.4.5 @@ -74,6 +65,9 @@ importers: packages/douban2rarbg: devDependencies: + '@mogeko/tsconfig': + specifier: ^0.0.4 + version: 0.0.4 '@types/jsdom': specifier: ^21.1.7 version: 21.1.7 @@ -86,9 +80,6 @@ importers: jsdom: specifier: ^24.1.0 version: 24.1.0 - tsconfig: - specifier: workspace:* - version: link:../_tsconfig typescript: specifier: ^5.4.5 version: 5.4.5 @@ -104,12 +95,12 @@ importers: packages/down-git: devDependencies: + '@mogeko/tsconfig': + specifier: ^0.0.4 + version: 0.0.4 '@types/node': specifier: ^20.14.2 version: 20.14.2 - tsconfig: - specifier: workspace:* - version: link:../_tsconfig typescript: specifier: ^5.4.5 version: 5.4.5 @@ -122,12 +113,12 @@ importers: packages/exclude-dv: devDependencies: + '@mogeko/tsconfig': + specifier: ^0.0.4 + version: 0.0.4 '@types/node': specifier: ^20.14.2 version: 20.14.2 - tsconfig: - specifier: workspace:* - version: link:../_tsconfig typescript: specifier: ^5.4.5 version: 5.4.5 @@ -140,12 +131,12 @@ importers: packages/ghproxy-gist-raw: devDependencies: + '@mogeko/tsconfig': + specifier: ^0.0.4 + version: 0.0.4 '@types/node': specifier: ^20.14.2 version: 20.14.2 - tsconfig: - specifier: workspace:* - version: link:../_tsconfig typescript: specifier: ^5.4.5 version: 5.4.5 @@ -158,12 +149,12 @@ importers: packages/ghproxy-raw: devDependencies: + '@mogeko/tsconfig': + specifier: ^0.0.4 + version: 0.0.4 '@types/node': specifier: ^20.14.2 version: 20.14.2 - tsconfig: - specifier: workspace:* - version: link:../_tsconfig typescript: specifier: ^5.4.5 version: 5.4.5 @@ -176,12 +167,12 @@ importers: packages/ghproxy-releases: devDependencies: + '@mogeko/tsconfig': + specifier: ^0.0.4 + version: 0.0.4 '@types/node': specifier: ^20.14.2 version: 20.14.2 - tsconfig: - specifier: workspace:* - version: link:../_tsconfig typescript: specifier: ^5.4.5 version: 5.4.5 @@ -461,6 +452,9 @@ packages: '@manypkg/get-packages@1.1.3': resolution: {integrity: sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A==} + '@mogeko/tsconfig@0.0.4': + resolution: {integrity: sha512-ioH1dMBUawFLjO3dYQMaWG5T/l0VpY1EikVsNEBcF0z/cAkwNK3AbnTlv73ugWbzCGrP7ycEmIPJFhEIWjWhFA==} + '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -541,8 +535,8 @@ packages: '@sinclair/typebox@0.27.8': resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} - '@tsconfig/recommended@1.0.6': - resolution: {integrity: sha512-0IKu9GHYF1NGTJiYgfWwqnOQSlnE9V9R7YohHNNf0/fj/SyOZWzdd06JFr0fLpg1Mqw0kGbYg8w5xdkSqLKM9g==} + '@tsconfig/strictest@2.0.5': + resolution: {integrity: sha512-ec4tjL2Rr0pkZ5hww65c+EEPYwxOi4Ryv+0MtjeaSQRJyq322Q27eOQiFbuNgw2hpL4hB1/W/HBGk3VKS43osg==} '@types/estree@1.0.5': resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} @@ -2518,6 +2512,10 @@ snapshots: globby: 11.1.0 read-yaml-file: 1.1.0 + '@mogeko/tsconfig@0.0.4': + dependencies: + '@tsconfig/strictest': 2.0.5 + '@nodelib/fs.scandir@2.1.5': dependencies: '@nodelib/fs.stat': 2.0.5 @@ -2571,7 +2569,7 @@ snapshots: '@sinclair/typebox@0.27.8': {} - '@tsconfig/recommended@1.0.6': {} + '@tsconfig/strictest@2.0.5': {} '@types/estree@1.0.5': {}