solid-ssr
Advanced tools
Comparing version 1.7.1 to 1.7.2
{ | ||
"name": "solid-ssr", | ||
"description": "Utilities to help with SSR", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"author": "Ryan Carniato", | ||
@@ -29,4 +29,4 @@ "license": "MIT", | ||
"rollup-plugin-copy": "^3.4.0", | ||
"babel-preset-solid": "1.7.4", | ||
"solid-js": "1.7.4" | ||
"babel-preset-solid": "1.7.7", | ||
"solid-js": "1.7.7" | ||
}, | ||
@@ -33,0 +33,0 @@ "scripts": { |
@@ -1,2 +0,2 @@ | ||
export type StaticConfig = { entry: string, output: string, url: string } | ||
export default function renderStatic(config: StaticConfig | StaticConfig[]): Promise<void>; | ||
export type StaticConfig = { entry: string; output: string; url: string }; | ||
export default function renderStatic(config: StaticConfig | StaticConfig[]): Promise<void>; |
@@ -11,3 +11,9 @@ import { resolve } from "path"; | ||
async function run({ entry, output, url }) { | ||
const { stdout, stderr } = await exec("node", [pathToRunner, entry, output, url, "--trace-warnings"]); | ||
const { stdout, stderr } = await exec("node", [ | ||
pathToRunner, | ||
entry, | ||
output, | ||
url, | ||
"--trace-warnings" | ||
]); | ||
if (stdout.length) console.log(stdout); | ||
@@ -21,2 +27,2 @@ if (stderr.length) console.log(stderr); | ||
} else await run(config); | ||
}; | ||
} |
import { dirname, join } from "path"; | ||
import { writeFile, mkdir } from "fs" | ||
import { writeFile, mkdir } from "fs"; | ||
@@ -7,6 +7,6 @@ async function write() { | ||
const res = await server({ url: process.argv[4] }); | ||
mkdir(dirname(process.argv[3]), {recursive: true}, () => | ||
mkdir(dirname(process.argv[3]), { recursive: true }, () => | ||
writeFile(process.argv[3], res, () => process.exit(0)) | ||
); | ||
} | ||
write(); | ||
write(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8547
58