Skip to content

Commit

Permalink
Remove ts-node, tweak linking script (#7373)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam authored Apr 11, 2023
1 parent 525e559 commit cffb120
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 21 deletions.
39 changes: 31 additions & 8 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"socket.io-client": "4.5.1",
"tinymce": "6.1.2",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.0.4",
"vite": "^4.2.1",
Expand Down
8 changes: 4 additions & 4 deletions scripts/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const dataPath: string | undefined = (
await prompts({
type: "text",
name: "value",
format: (v: string) => v.replaceAll("\\", "/").replace(/\/$/, ""),
message: `What is the full path to your Foundry data folder?${windowsInstructions}`,
format: (v: string) => v.replace(/\W*$/, "").trim(),
message: `Enter the full path to your Foundry data folder.${windowsInstructions}`,
})
).value;
if (!dataPath?.endsWith("/Data")) {
if (!dataPath || !/\bData$/.test(dataPath)) {
console.error(`"${dataPath}" does not look like a Foundry data folder.`);
process.exit(1);
}
Expand All @@ -31,7 +31,7 @@ if (symlinkStats) {
type: "confirm",
name: "value",
initial: false,
message: `A ${atPath} already exists in the "systems" subfolder. Replace with new symlink?`,
message: `A "pf2e" ${atPath} already exists in the "systems" subfolder. Replace with new symlink?`,
})
).value;
if (!proceed) {
Expand Down
11 changes: 3 additions & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
"@util/*": ["src/util/*"]
},
"types": [
"jquery",
"tooltipster",
"gsap",
"handlebars",
"jest",
"jquery",
"node",
"handlebars",
"tooltipster",
"vite/client"
],
"typeRoots": [
Expand All @@ -58,10 +58,5 @@
},
"watchOptions": {
"excludeDirectories": ["packs/data/", "static/packs/"]
},
"ts-node": {
"esm": true,
"experimentalSpecifierResolution": "node",
"files": true
}
}

0 comments on commit cffb120

Please sign in to comment.