@klevn/jxc
Advanced tools
Comparing version
@@ -5,3 +5,5 @@ import { resolve } from "path"; | ||
import { fork } from "child_process"; | ||
import { getNames } from "../utils/utils.js"; | ||
const timeoutDuration = 3500; | ||
const { __dirname, __filename } = getNames(import.meta); | ||
export default () => { | ||
@@ -19,3 +21,3 @@ const input = resolve(cwd(), argv[3] ?? "./routes"); | ||
console.log(`${formatedDate} - New live server reload.`); | ||
fork("../utils/build-worker.js", [input, output]); | ||
fork(resolve(__dirname, "../utils/build-worker.js"), [input, output]); | ||
}, timeoutDuration); | ||
@@ -22,0 +24,0 @@ } |
@@ -5,5 +5,8 @@ import { resolve } from "path" | ||
import { fork } from "child_process" | ||
import { getNames } from "../utils/utils.js" | ||
const timeoutDuration = 3500 | ||
const { __dirname, __filename } = getNames(import.meta) | ||
export default () => { | ||
@@ -25,3 +28,3 @@ const input = resolve(cwd(), argv[3] ?? "./routes") | ||
fork("../utils/build-worker.js", [input, output]) | ||
fork(resolve(__dirname, "../utils/build-worker.js"), [input, output]) | ||
}, timeoutDuration) | ||
@@ -28,0 +31,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { build } from "../builder"; | ||
import { build } from "../builder.js"; | ||
function run(input, output) { | ||
@@ -3,0 +3,0 @@ build(input, output); |
@@ -1,2 +0,2 @@ | ||
import { build } from "../builder" | ||
import { build } from "../builder.js" | ||
@@ -3,0 +3,0 @@ function run(input:string, output:string) { |
@@ -35,3 +35,3 @@ { | ||
"name": "@klevn/jxc", | ||
"version": "38.3.9", | ||
"version": "38.4.9", | ||
"main": "./dist/compiler.js", | ||
@@ -38,0 +38,0 @@ "types": "./dist/compiler.d.ts", |
@@ -5,5 +5,8 @@ import { resolve } from "path" | ||
import { fork } from "child_process" | ||
import { getNames } from "../utils/utils.js" | ||
const timeoutDuration = 3500 | ||
const { __dirname, __filename } = getNames(import.meta) | ||
export default () => { | ||
@@ -25,3 +28,3 @@ const input = resolve(cwd(), argv[3] ?? "./routes") | ||
fork("../utils/build-worker.js", [input, output]) | ||
fork(resolve(__dirname, "../utils/build-worker.js"), [input, output]) | ||
}, timeoutDuration) | ||
@@ -28,0 +31,0 @@ } |
@@ -231,3 +231,3 @@ import { join, resolve } from "path" | ||
export function appendClientElement(target:HTMLElement, element: JSX.Element) { | ||
} | ||
@@ -234,0 +234,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { build } from "../builder" | ||
import { build } from "../builder.js" | ||
@@ -3,0 +3,0 @@ function run(input:string, output:string) { |
{ | ||
"compilerOptions": { | ||
"target": "ESNext", | ||
"module": "es2022", | ||
"target": "esnext", | ||
"module": "NodeNext", | ||
"moduleResolution": "NodeNext", | ||
"jsx": "preserve", | ||
@@ -9,4 +10,2 @@ | ||
"moduleResolution": "Node", | ||
"outDir": "dist", | ||
@@ -13,0 +12,0 @@ "declaration": true, |
Sorry, the diff of this file is not supported yet
80036
0.47%2016
0.3%