📺 tsc-alias

This commit is contained in:
2026-05-20 15:24:20 +02:00
parent e4e41197b9
commit 948c230df8
8 changed files with 104 additions and 7 deletions
+2
View File
@@ -6,6 +6,7 @@ set -eo pipefail # this can be harmful, see https://www.youtube.com/watch?v=4Jo3
}
# depends on
declare -r tsc='node_modules/.bin/tsc'
declare -r tscAlias='node_modules/.bin/tsc-alias'
help(){
if ! isHelp "${@}"; then return 0; fi
@@ -17,6 +18,7 @@ help(){
main(){
help "${@}"
$tsc "${@}"
$tscAlias
}
main "${@}"
-2
View File
@@ -4,8 +4,6 @@ set -eo pipefail # this can be harmful, see https://www.youtube.com/watch?v=4Jo3
echo 'Please run this script from the project root directory' >&2;
exit 1;
}
# "start:build": "web-dev-server --root-dir dist --app-index index.html --open",
# "start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"web-dev-server\""
# depends on
declare -r server='node_modules/.bin/web-dev-server'
declare -r lint='bs/lint'
-2
View File
@@ -12,8 +12,6 @@ help(){
if ! isHelp "${@}"; then return 0; fi
echoReadmeInfo
cat <<EOF
Options:
--watch, -w Runs in watch mode
EOF
$wtr --help
+95
View File
@@ -27,6 +27,7 @@
"rollup": "~4.59",
"rollup-plugin-esbuild": "~6.2",
"rollup-plugin-workbox": "~8.1",
"tsc-alias": "^1.8.17",
"tslib": "~2.8",
"typescript": "~6.0"
}
@@ -8380,6 +8381,20 @@
"dev": true,
"license": "MIT"
},
"node_modules/mylas": {
"version": "2.1.14",
"resolved": "https://registry.npmjs.org/mylas/-/mylas-2.1.14.tgz",
"integrity": "sha512-BzQguy9W9NJgoVn2mRWzbFrFWWztGCcng2QI9+41frfk+Athwgx3qhqhvStz7ExeUUu7Kzw427sNzHpEZNINog==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=16.0.0"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/raouldeheer"
}
},
"node_modules/nanocolors": {
"version": "0.2.13",
"resolved": "https://registry.npmjs.org/nanocolors/-/nanocolors-0.2.13.tgz",
@@ -8838,6 +8853,19 @@
"url": "https://github.com/sponsors/jonschlinkert"
}
},
"node_modules/plimit-lit": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/plimit-lit/-/plimit-lit-1.6.1.tgz",
"integrity": "sha512-B7+VDyb8Tl6oMJT9oSO2CW8XC/T4UcJGrwOVoNGwOQsQYhlpfajmrMj5xeejqaASq3V/EqThyOeATEOMuSEXiA==",
"dev": true,
"license": "MIT",
"dependencies": {
"queue-lit": "^1.5.1"
},
"engines": {
"node": ">=12"
}
},
"node_modules/portfinder": {
"version": "1.0.38",
"resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.38.tgz",
@@ -9000,6 +9028,16 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/queue-lit": {
"version": "1.5.2",
"resolved": "https://registry.npmjs.org/queue-lit/-/queue-lit-1.5.2.tgz",
"integrity": "sha512-tLc36IOPeMAubu8BkW8YDBV+WyIgKlYU7zUNs0J5Vk9skSZ4JfGlPOqplP0aHdfv7HL0B2Pg6nwiq60Qc6M2Hw==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=12"
}
},
"node_modules/queue-microtask": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
@@ -10319,6 +10357,63 @@
"node": ">=18"
}
},
"node_modules/tsc-alias": {
"version": "1.8.17",
"resolved": "https://registry.npmjs.org/tsc-alias/-/tsc-alias-1.8.17.tgz",
"integrity": "sha512-EIduCZHqbNwPm8BZYfq1aD7BQ697A4h6uSGMOFQfYGoQwfrYFTKwYfy9Bv42YxHkduVBcn9Zx0DkX111DKskyg==",
"dev": true,
"license": "MIT",
"dependencies": {
"chokidar": "^3.5.3",
"commander": "^9.0.0",
"get-tsconfig": "^4.10.0",
"globby": "^11.0.4",
"mylas": "^2.1.9",
"normalize-path": "^3.0.0",
"plimit-lit": "^1.2.6"
},
"bin": {
"tsc-alias": "dist/bin/index.js"
},
"engines": {
"node": ">=16.20.2"
}
},
"node_modules/tsc-alias/node_modules/chokidar": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
"integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
"dev": true,
"license": "MIT",
"dependencies": {
"anymatch": "~3.1.2",
"braces": "~3.0.2",
"glob-parent": "~5.1.2",
"is-binary-path": "~2.1.0",
"is-glob": "~4.0.1",
"normalize-path": "~3.0.0",
"readdirp": "~3.6.0"
},
"engines": {
"node": ">= 8.10.0"
},
"funding": {
"url": "https://paulmillr.com/funding/"
},
"optionalDependencies": {
"fsevents": "~2.3.2"
}
},
"node_modules/tsc-alias/node_modules/commander": {
"version": "9.5.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz",
"integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": "^12.20.0 || >=14"
}
},
"node_modules/tslib": {
"version": "2.8.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+1
View File
@@ -29,6 +29,7 @@
"rollup": "~4.59",
"rollup-plugin-esbuild": "~6.2",
"rollup-plugin-workbox": "~8.1",
"tsc-alias": "~1.8",
"tslib": "~2.8",
"typescript": "~6.0"
},
+1 -1
View File
@@ -1,4 +1,4 @@
import { route } from "../../core/route.js";
import { route } from "@/core/route.js";
import { html } from "lit";
export const path = "/episodes" as const;
+1 -1
View File
@@ -1,4 +1,4 @@
import { route } from "../core/route.js";
import { route } from "@/core/route.js";
import { routes as routeEpisode } from "./:id/routes.js";
import { html } from "lit";
+4 -1
View File
@@ -32,7 +32,10 @@
"rootDir": "./",
"incremental": true,
"types": ["mocha"],
"lib": ["es2021", "dom", "DOM.Iterable"]
"lib": ["es2021", "dom", "DOM.Iterable"],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["**/*.ts"]
}