Skip to content

Commit

Permalink
feat(storm-ops): Major updates to tsconfig values
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivanpj committed Feb 26, 2024
1 parent d1830d3 commit a3638fa
Show file tree
Hide file tree
Showing 15 changed files with 120 additions and 144 deletions.
2 changes: 1 addition & 1 deletion .github/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.4.0
21.0.0
3 changes: 2 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@
"workspaceChangelog": false,
"projectChangelogs": {
"createRelease": "github",
"entryWhenNoChanges": false
"entryWhenNoChanges": false,
"renderer": "@storm-software/git-tools/src/release/changelog-renderer.js"
}
},
"version": {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"@swc/core": "1.3.106",
"@swc/helpers": "0.5.3",
"@swc/wasm": "^1.4.2",
"@tsconfig/recommended": "1.0.3",
"@types/jest": "29.5.11",
"@types/node": "20.11.20",
"@typescript-eslint/eslint-plugin": "^6.13.2",
Expand All @@ -101,7 +102,7 @@
},
"packageManager": "pnpm@8.14.3",
"engines": {
"node": ">=20.4.0",
"node": ">=21.0.0",
"pnpm": ">=8.10.2"
},
"namespace": "@storm-software",
Expand Down
12 changes: 3 additions & 9 deletions packages/config-tools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,14 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"strict": false,
"skipLibCheck": true,
"moduleResolution": "node"
"strict": false
},
"files": [],
"include": [
"src/**/*.ts",
"src/**/*.js",
"bin/**/*",
"declarations.d.ts"
"**/*"
],
"exclude": [
"jest.config.ts",
"src/**/*.spec.ts",
"src/**/*.test.ts"
]
}
}
5 changes: 1 addition & 4 deletions packages/config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"outDir": "../../dist/out-tsc"
},
"files": [],
"include": [
"src/**/*.ts",
"src/**/*.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/git-tools/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"options": {
"outputPath": "dist/packages/git-tools",
"tsConfig": "packages/git-tools/tsconfig.lib.json",
"tsConfig": "packages/git-tools/tsconfig.json",
"project": "packages/git-tools/package.json",
"main": "packages/git-tools/src/index.ts",
"additionalEntryPoints": [
Expand Down
26 changes: 12 additions & 14 deletions packages/git-tools/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"target": "es2021",
"lib": [
"es2021",
"dom"
],
"skipLibCheck": true
"outDir": "../../dist/out-tsc",
"strict": false
},
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
"include": [
"src/**/*.ts",
"src/**/*.js",
"bin/**/*",
"declarations.d.ts"
],
"exclude": [
"jest.config.ts",
"src/**/*.spec.ts",
"src/**/*.test.ts"
]
}
21 changes: 0 additions & 21 deletions packages/git-tools/tsconfig.lib.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/linting-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@
"publishConfig": {
"access": "public"
}
}
}
11 changes: 0 additions & 11 deletions packages/linting-tools/src/tsconfig/tsconfig.root.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@
"noUncheckedIndexedAccess": true,
"strictNullChecks": true,
"strict": true,
"types": [
"node"
],
"resolveJsonModule": true,
"isolatedModules": true,
"moduleResolution": "Bundler",
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"noImplicitOverride": true,
Expand All @@ -25,13 +21,6 @@
"importHelpers": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"target": "esnext",
"module": "esnext",
"lib": [
"esnext",
"dom",
"dom.iterable"
],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"esModuleInterop": true
Expand Down
27 changes: 12 additions & 15 deletions packages/linting-tools/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"target": "es2021",
"lib": [
"es2021",
"dom"
],
"skipLibCheck": true
"outDir": "../../dist/out-tsc",
"strict": false
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
"include": [
"src/**/*.ts",
"src/**/*.js",
"bin/**/*",
"declarations.d.ts"
],
"exclude": [
"jest.config.ts",
"src/**/*.spec.ts",
"src/**/*.test.ts"
]
}
16 changes: 0 additions & 16 deletions packages/linting-tools/tsconfig.lib.json

This file was deleted.

49 changes: 22 additions & 27 deletions packages/workspace-tools/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"targets": {
"build": {
"executor": "@nx/esbuild:esbuild",
"outputs": ["{options.outputPath}"],
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/packages/workspace-tools",
"tsConfig": "packages/workspace-tools/tsconfig.lib.json",
Expand Down Expand Up @@ -36,13 +38,18 @@
"skipTypeCheck": false,
"metafile": true,
"minify": false,
"format": ["cjs"],
"format": [
"cjs"
],
"esbuildOptions": {
"outExtension": {
".js": ".js"
}
},
"external": ["nx", "esbuild"],
"external": [
"nx",
"esbuild"
],
"assets": [
{
"input": "./packages/workspace-tools",
Expand Down Expand Up @@ -93,40 +100,28 @@
"input": "./packages/workspace-tools/assets",
"glob": "**/*.*",
"output": "./assets"
},
{
"input": "./packages/workspace-tools/libs",
"glob": "**/*.*",
"output": "./src/executors/tsup"
},
{
"input": "./packages/workspace-tools/libs",
"glob": "**/*.*",
"output": "./src/executors/tsup-node"
},
{
"input": "./packages/workspace-tools/libs",
"glob": "**/*.*",
"output": "./src/executors/tsup-browser"
},
{
"input": "./packages/workspace-tools/libs",
"glob": "**/*.*",
"output": "./src/executors/tsup-neutral"
}
]
}
},
"nx-release-publish": {
"cache": false,
"inputs": ["default", "^production"],
"dependsOn": ["^build"],
"inputs": [
"default",
"^production"
],
"dependsOn": [
"^build"
],
"executor": "@storm-software/workspace-tools:npm-publish",
"options": {
"packageRoot": "dist/{projectRoot}",
"registry": "https://registry.npmjs.org/"
}
}
},
"tags": ["type:util", "scope:tools"]
}
"tags": [
"type:util",
"scope:tools"
]
}
13 changes: 13 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a3638fa

Please sign in to comment.