mirror of
https://github.com/DinheroDevelopmentGroup/modular-minecraft-proxy.git
synced 2024-11-27 01:25:57 -05:00
fix module imports
This commit is contained in:
parent
c7fa5a4b1d
commit
5dcf920197
5 changed files with 21 additions and 1 deletions
|
@ -7,6 +7,8 @@
|
|||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build": "scripty",
|
||||
"watch:build": "scripty",
|
||||
"copy": "scripty",
|
||||
"watch:copy": "scripty",
|
||||
"lint": "scripty",
|
||||
"run": "scripty",
|
||||
"watch:run": "scripty",
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# --delete-dir-on-start breaks nodemon
|
||||
swc src -d dist --strip-leading-paths $@
|
||||
swc \
|
||||
src --strip-leading-paths -d dist \
|
||||
$@
|
||||
|
|
11
script/copy.sh
Executable file
11
script/copy.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# hopefully excluding all ts files
|
||||
# instead of including all node_modules
|
||||
# doesn't come to bite me in the ass
|
||||
# later
|
||||
rsync \
|
||||
--verbose \
|
||||
-a --del src/ dist \
|
||||
--exclude "*.ts" \
|
||||
$@
|
3
script/watch/copy.sh
Executable file
3
script/watch/copy.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
nodemon --watch src --exec "./script/copy.sh $@"
|
|
@ -196,6 +196,8 @@ async function init(options: InitOptions): Promise<void> {
|
|||
task.output = 'validating schema...';
|
||||
const safe = PackageJsonSchema.parse(unsafe);
|
||||
|
||||
delete safe.index;
|
||||
safe.type = 'module';
|
||||
safe.name = options.name;
|
||||
safe.author = options.author;
|
||||
safe.license = options.license;
|
||||
|
|
Loading…
Reference in a new issue