Skip to content

Commit

Permalink
use tsconfig from package to avoid confusion
Browse files Browse the repository at this point in the history
cc @martin-lysk you raised the issue on discord that you were unsure which tsconfig to take.
  • Loading branch information
samuelstroschein committed Jan 24, 2025
1 parent 390630c commit dd7d176
Show file tree
Hide file tree
Showing 27 changed files with 510 additions and 277 deletions.
1 change: 1 addition & 0 deletions inlang/packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@types/node": "20.5.9",
"@types/promptly": "^3.0.2",
"@types/prompts": "^2.4.4",
"@opral/tsconfig": "workspace:*",
"@vitest/coverage-v8": "2.1.8",
"cli-progress": "^3.12.0",
"commander": "^11.0.0",
Expand Down
2 changes: 1 addition & 1 deletion inlang/packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.base.json",
"extends": "@opral/tsconfig/default",
"include": ["src/**/**.ts"],
"compilerOptions": {
"target": "ES2021",
Expand Down
1 change: 1 addition & 0 deletions inlang/packages/fink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"@opral/tsconfig": "workspace:*",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.2",
Expand Down
63 changes: 32 additions & 31 deletions inlang/packages/marketplace-manifest/package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
{
"name": "@inlang/marketplace-manifest",
"type": "module",
"version": "1.4.2",
"exports": {
".": "./dist/index.js"
},
"files": [
"./dist",
"./src"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsc --build",
"dev": "tsc --watch",
"test": "tsc --noEmit && vitest run",
"format": "prettier ./src --write",
"clean": "rm -rf ./dist ./node_modules"
},
"dependencies": {},
"devDependencies": {
"@sinclair/typebox": "^0.31.17",
"typescript": "^5.5.2",
"vitest": "0.34.3"
},
"peerDependencies": {
"@sinclair/typebox": "^0.31.17"
},
"license": "Apache-2.0"
}
"name": "@inlang/marketplace-manifest",
"type": "module",
"version": "1.4.2",
"exports": {
".": "./dist/index.js"
},
"files": [
"./dist",
"./src"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsc --build",
"dev": "tsc --watch",
"test": "tsc --noEmit && vitest run",
"format": "prettier ./src --write",
"clean": "rm -rf ./dist ./node_modules"
},
"dependencies": {},
"devDependencies": {
"@opral/tsconfig": "workspace:*",
"@sinclair/typebox": "^0.31.17",
"typescript": "^5.5.2",
"vitest": "0.34.3"
},
"peerDependencies": {
"@sinclair/typebox": "^0.31.17"
},
"license": "Apache-2.0"
}
16 changes: 8 additions & 8 deletions inlang/packages/marketplace-manifest/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "../tsconfig.base.json",
"include": ["src/**/*"],
"compilerOptions": {
"lib": ["ESNext"],
"types": [],
"outDir": "./dist",
"rootDir": "./src"
}
"extends": "@opral/tsconfig/default",
"include": ["src/**/*"],
"compilerOptions": {
"lib": ["ESNext"],
"types": [],
"outDir": "./dist",
"rootDir": "./src"
}
}
67 changes: 34 additions & 33 deletions inlang/packages/marketplace-registry/package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
{
"name": "@inlang/marketplace-registry",
"type": "module",
"version": "2.0.0",
"private": true,
"exports": {
".": "./dist/index.js",
"./registry.json": "./registry.json"
},
"files": [
"./dist",
"./src"
],
"scripts": {
"build": "node ./buildRegistry.js && npx prettier ./src --write && tsc --build",
"dev": "tsc --watch",
"purge": "node ./purgeRegistry.js",
"test": "node ./buildRegistry.js && npx prettier ./src --write && tsc --noEmit",
"format": "prettier ./src --write",
"clean": "rm -rf ./dist ./node_modules"
},
"engines": {
"node": ">=16.15.0"
},
"dependencies": {
"@inlang/marketplace-manifest": "workspace:*",
"@sinclair/typebox": "^0.31.8",
"algoliasearch": "4.20.0",
"node-fetch": "3.3.2"
},
"devDependencies": {
"typescript": "5.2.2"
},
"license": "Apache-2.0"
"name": "@inlang/marketplace-registry",
"type": "module",
"version": "2.0.0",
"private": true,
"exports": {
".": "./dist/index.js",
"./registry.json": "./registry.json"
},
"files": [
"./dist",
"./src"
],
"scripts": {
"build": "node ./buildRegistry.js && npx prettier ./src --write && tsc --build",
"dev": "tsc --watch",
"purge": "node ./purgeRegistry.js",
"test": "node ./buildRegistry.js && npx prettier ./src --write && tsc --noEmit",
"format": "prettier ./src --write",
"clean": "rm -rf ./dist ./node_modules"
},
"engines": {
"node": ">=16.15.0"
},
"dependencies": {
"@opral/tsconfig": "workspace:*",
"@inlang/marketplace-manifest": "workspace:*",
"@sinclair/typebox": "^0.31.8",
"algoliasearch": "4.20.0",
"node-fetch": "3.3.2"
},
"devDependencies": {
"typescript": "5.2.2"
},
"license": "Apache-2.0"
}
14 changes: 7 additions & 7 deletions inlang/packages/marketplace-registry/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "../tsconfig.base.json",
"include": ["src/**/*"],
"compilerOptions": {
"types": [],
"outDir": "./dist",
"rootDir": "./src"
}
"extends": "@opral/tsconfig/default",
"include": ["src/**/*"],
"compilerOptions": {
"types": [],
"outDir": "./dist",
"rootDir": "./src"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"comment-json": "^4.2.3"
},
"devDependencies": {
"@opral/tsconfig": "workspace:*",
"@types/vscode": "^1.84.2",
"@vitest/coverage-v8": "2.1.8",
"memfs": "4.6.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "@opral/tsconfig/default",
"include": ["src/*", "./build.js"],
"compilerOptions": {
"resolveJsonModule": true,
Expand Down
1 change: 1 addition & 0 deletions inlang/packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"tsx": "3.12.7"
},
"devDependencies": {
"@opral/tsconfig": "workspace:*",
"@types/compression": "^1.7.2",
"@types/express": "^4.17.17",
"typescript": "^5.5.2"
Expand Down
20 changes: 10 additions & 10 deletions inlang/packages/server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"extends": "../tsconfig.base.json",
"include": ["src/**/*.ts"],
"compilerOptions": {
// DOM because of fetch. TODO: extract fetch from this package and
// let fetch be provided by the environment.
"lib": ["ESNext", "DOM"],
"types": [],
"outDir": "./dist",
"rootDir": "./src"
}
"extends": "@opral/tsconfig/default",
"include": ["src/**/*.ts"],
"compilerOptions": {
// DOM because of fetch. TODO: extract fetch from this package and
// let fetch be provided by the environment.
"lib": ["ESNext", "DOM"],
"types": [],
"outDir": "./dist",
"rootDir": "./src"
}
}
1 change: 1 addition & 0 deletions inlang/packages/sherlock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@
"vitest": "^2.1.8"
},
"devDependencies": {
"@opral/tsconfig": "workspace:*",
"@sentry/node": "^7.99.0",
"@types/fs-extra": "^11.0.2",
"@types/glob": "^8.1.0",
Expand Down
2 changes: 1 addition & 1 deletion inlang/packages/sherlock/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.base.json",
"extends": "@opral/tsconfig/default",
"include": ["src/**/*", "./build.js", "test/test.cts"],
"compilerOptions": {
"lib": ["ESNext"],
Expand Down
1 change: 1 addition & 0 deletions inlang/packages/telemetry-proxy-parrot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"tsx": "3.12.7"
},
"devDependencies": {
"@opral/tsconfig": "workspace:*",
"@types/express": "^4.17.17",
"typescript": "^5.5.2"
},
Expand Down
18 changes: 9 additions & 9 deletions inlang/packages/telemetry-proxy-parrot/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"extends": "../tsconfig.base.json",
"include": ["src/*.ts"],
"compilerOptions": {
// DOM because of fetch. TODO: extract fetch from this package and
// let fetch be provided by the environment.
"lib": ["ESNext", "DOM"],
"types": [],
"rootDir": "./src"
}
"extends": "@opral/tsconfig/default",
"include": ["src/*.ts"],
"compilerOptions": {
// DOM because of fetch. TODO: extract fetch from this package and
// let fetch be provided by the environment.
"lib": ["ESNext", "DOM"],
"types": [],
"rootDir": "./src"
}
}
41 changes: 21 additions & 20 deletions inlang/packages/telemetry-proxy/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
{
"name": "@inlang/telemetry-proxy",
"type": "module",
"private": true,
"scripts": {
"dev": "node --loader tsx ./src/main.ts",
"production": "NODE_ENV=production tsx ./src/main.ts",
"format": "prettier ./src --write",
"clean": "rm -rf ./dist ./node_modules"
},
"dependencies": {
"express": "^4.18.2",
"http-proxy-middleware": "^2.0.6",
"tsx": "3.12.7"
},
"devDependencies": {
"@types/express": "^4.17.17",
"typescript": "^5.5.2"
},
"license": "Apache-2.0",
"version": "0.0.1"
"name": "@inlang/telemetry-proxy",
"type": "module",
"private": true,
"scripts": {
"dev": "node --loader tsx ./src/main.ts",
"production": "NODE_ENV=production tsx ./src/main.ts",
"format": "prettier ./src --write",
"clean": "rm -rf ./dist ./node_modules"
},
"dependencies": {
"express": "^4.18.2",
"http-proxy-middleware": "^2.0.6",
"tsx": "3.12.7"
},
"devDependencies": {
"@opral/tsconfig": "workspace:*",
"@types/express": "^4.17.17",
"typescript": "^5.5.2"
},
"license": "Apache-2.0",
"version": "0.0.1"
}
2 changes: 1 addition & 1 deletion inlang/packages/telemetry-proxy/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.base.json",
"extends": "@opral/tsconfig/default",
"include": ["src/*.ts"],
"compilerOptions": {
// DOM because of fetch. TODO: extract fetch from this package and
Expand Down
42 changes: 0 additions & 42 deletions inlang/packages/tsconfig.base.json

This file was deleted.

1 change: 1 addition & 0 deletions inlang/packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"vike-solid": "^0.4.2"
},
"devDependencies": {
"@opral/tsconfig": "workspace:*",
"legacy-tailwind-color-plugin": "./tailwind-color-plugin",
"@iconify-json/cib": "^1.1.2",
"@iconify-json/material-symbols": "^1.1.26",
Expand Down
2 changes: 1 addition & 1 deletion inlang/packages/website/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../tsconfig.base.json",
"extends": "@opral/tsconfig/default",
"include": ["src/**/*"],
"compilerOptions": {
"moduleResolution": "Node16",
Expand Down
Loading

0 comments on commit dd7d176

Please sign in to comment.