-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtasks.ts
executable file
·41 lines (36 loc) · 1.01 KB
/
tasks.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env -S sh -c '"`dirname $0`/node_modules/.bin/tsx" "$0" "$@"'
// The above shebang line is a hack to run this under the locally installed
// tsx, without having to install it globally. See
// https://stackoverflow.com/questions/20095351/shebang-use-interpreter-relative-to-the-script-path
//
// tsx is a wrapper around node that allows you to run typescript.
// https://github.com/privatenumber/tsx
import { boot } from "@lumphammer/shared-fvtt-bits/task-core/boot";
import {
buildPackTranslations,
clean,
copyPacksBack,
extractPacks,
link,
unlink,
} from "@lumphammer/shared-fvtt-bits/task-core/tasks";
import path from "path";
import { fileURLToPath } from "url";
const rootPath = path.dirname(fileURLToPath(import.meta.url));
void boot({
config: {
rootPath,
publicPath: "public",
manifestName: "system.json",
buildPath: "build",
packagePath: "build_package",
},
commands: [
link,
unlink,
clean,
buildPackTranslations,
copyPacksBack,
extractPacks,
],
});