@jxsuite/create 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generate.ts +4 -2
- package/package.json +2 -2
package/generate.ts
CHANGED
|
@@ -341,8 +341,7 @@ function buildProjectJson({ name, description, url, adapter, template = "blank"
|
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
const build: { outDir: string;
|
|
345
|
-
format: "directory",
|
|
344
|
+
const build: { outDir: string; trailingSlash: string; adapter?: string } = {
|
|
346
345
|
outDir: "./dist",
|
|
347
346
|
trailingSlash: "always",
|
|
348
347
|
};
|
|
@@ -400,11 +399,14 @@ function buildPackageJson({
|
|
|
400
399
|
const devDependencies: Record<string, string> = {
|
|
401
400
|
"@jxsuite/compiler": "^0.19.0",
|
|
402
401
|
"@jxsuite/runtime": "^0.19.0",
|
|
402
|
+
// The `dev` script spawns @jxsuite/server's dev entry (see jx dev in the compiler CLI)
|
|
403
|
+
"@jxsuite/server": "^1.0.0",
|
|
403
404
|
};
|
|
404
405
|
|
|
405
406
|
const scripts: Record<string, string> = {
|
|
406
407
|
build: "jx build",
|
|
407
408
|
dev: "jx dev",
|
|
409
|
+
preview: "jx preview",
|
|
408
410
|
};
|
|
409
411
|
|
|
410
412
|
if (adapter && adapter !== "static") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jxsuite/create",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Scaffold a new Jx project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
"test:coverage": "bun test --isolate --coverage"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@jxsuite/starters": "^1.
|
|
38
|
+
"@jxsuite/starters": "^1.1.0"
|
|
39
39
|
}
|
|
40
40
|
}
|