* add prettier

* lint-staged

* prettier

* upgrade husky
This commit is contained in:
nyagami
2024-03-23 22:00:29 +07:00
committed by GitHub
parent c22979b10f
commit 5f9a067ab9
113 changed files with 79244 additions and 50841 deletions
+18 -18
View File
@@ -1,18 +1,18 @@
import { TscWatchClient } from "tsc-watch/client";
const watch = new TscWatchClient();
let port = Number(process.argv[2]);
if (!port) {
console.log(`Port not specified! Setting default 3000!
Run \`npm start -- <port>\` to change it
`);
port = 3000;
}
watch.start("--onSuccess", `node ./.js/index.js ${port}`);
try {
} catch (e) {
watch.kill(); // Fatal error, kill the compiler instance.
}
import { TscWatchClient } from 'tsc-watch/client';
const watch = new TscWatchClient();
let port = Number(process.argv[2]);
if (!port) {
console.log(`Port not specified! Setting default 3000!
Run \`npm start -- <port>\` to change it
`);
port = 3000;
}
watch.start('--onSuccess', `node ./.js/index.js ${port}`);
try {
} catch (e) {
watch.kill(); // Fatal error, kill the compiler instance.
}