Skip to content

Commit

Permalink
Clean up configs
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Jun 23, 2023
1 parent 8d8e1a2 commit 9eb2508
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 331 deletions.
10 changes: 10 additions & 0 deletions configs/babel-jest.config.json
@@ -0,0 +1,10 @@
{
"rootDir": "..",
"testRegex": "src/.*\\.test\\.ts$",
"transform": {
"^.+\\.tsx?$": ["babel-jest", { "configFile": "./configs/babel.config.js" }]
},
"modulePathIgnorePatterns": ["language-server", "__vitest__"],
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"coverageReporters": ["json-summary", "text", "lcov"]
}
File renamed without changes.
5 changes: 4 additions & 1 deletion jest.config.json → configs/jest.config.json
@@ -1,5 +1,8 @@
{
"rootDir": ".",
"rootDir": "..",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "src/.*\\.test\\.ts$",
"modulePathIgnorePatterns": ["language-server", "__vitest__"],
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js → configs/rollup.config.js
Expand Up @@ -21,7 +21,7 @@ export default [
],
plugins: [
typescript({
tsconfig: "tsconfig.esm.json",
tsconfig: "./configs/tsconfig.esm.json",
sourceMap: false,
}),
],
Expand Down
2 changes: 1 addition & 1 deletion swc-jest.config.json → configs/swc-jest.config.json
@@ -1,5 +1,5 @@
{
"rootDir": ".",
"rootDir": "..",
"transform": {
"^.+\\.(t|j)sx?$": "@swc/jest"
},
Expand Down
2 changes: 1 addition & 1 deletion ts-jest.config.json → configs/ts-jest.config.json
@@ -1,5 +1,5 @@
{
"rootDir": ".",
"rootDir": "..",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
Expand Down
16 changes: 3 additions & 13 deletions tsconfig.base.json → configs/tsconfig.base.json
@@ -1,12 +1,6 @@
{
"compilerOptions": {
"lib": [
"es5",
"es6",
"es7",
"esnext",
"dom"
],
"lib": ["es5", "es6", "es7", "esnext", "dom"],
"target": "es2018",
"removeComments": false,
"esModuleInterop": true,
Expand All @@ -22,9 +16,5 @@
"downlevelIteration": true,
"isolatedModules": true
},
"include": [
"./src/**/*",
"playground.ts",
"./.eslintrc.js"
]
}
"include": ["../src/**/*", "../playground.ts", "../.eslintrc.js"]
}
9 changes: 3 additions & 6 deletions tsconfig.cjs.json → configs/tsconfig.cjs.json
Expand Up @@ -2,14 +2,11 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "lib",
"outDir": "../lib",
"declaration": true,
"declarationMap": false,
"sourceMap": false,
"removeComments": true
},
"exclude": [
"./src/**/__tests__",
"playground.ts"
]
}
"exclude": ["../src/**/__tests__", "../playground.ts"]
}
5 changes: 1 addition & 4 deletions tsconfig.esm.json → configs/tsconfig.esm.json
Expand Up @@ -7,8 +7,5 @@
"declarationMap": false,
"sourceMap": false
},
"exclude": [
"./src/**/__tests__",
"./src/playground.ts"
]
"exclude": ["../src/**/__tests__", "../src/playground.ts"]
}
3 changes: 2 additions & 1 deletion tsconfig.test.json → configs/tsconfig.test.json
Expand Up @@ -6,7 +6,8 @@
"target": "es5",
"declaration": true,
"declarationMap": false,
"sourceMap": false
"sourceMap": false,
"noEmit": true
},
"exclude": []
}
7 changes: 2 additions & 5 deletions tsconfig.types.json → configs/tsconfig.types.json
@@ -1,13 +1,10 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./lib/types",
"outDir": "../lib/types",
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true
},
"exclude": [
"./src/**/__tests__",
"./src/playground.ts"
]
"exclude": ["../src/**/__tests__", "../src/playground.ts"]
}
2 changes: 1 addition & 1 deletion vitest.config.ts → configs/vitest.config.ts
Expand Up @@ -5,7 +5,7 @@ export default defineConfig({
alias: {
"@jest/globals": "vitest",
},
include: ["**/*.test.ts"],
include: ["src/**/*.test.ts"],
isolate: false,
watch: false,
},
Expand Down
76 changes: 0 additions & 76 deletions deno/lib/__tests__/language-server.source.ts

This file was deleted.

0 comments on commit 9eb2508

Please sign in to comment.