create-prisma 0.14.0 → 0.14.1-pr.128.420.1
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/README.md +3 -5
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-3Er57PqW.mjs → src-DRmbnjIJ.mjs} +49 -52
- package/package.json +3 -4
- package/templates/create/astro/package.json.hbs +2 -2
- package/templates/create/elysia/package.json.hbs +2 -2
- package/templates/create/hono/package.json.hbs +2 -2
- package/templates/create/minimal/package.json.hbs +2 -2
- package/templates/create/nest/package.json.hbs +2 -2
- package/templates/create/next/package.json.hbs +2 -2
- package/templates/create/nuxt/package.json.hbs +2 -2
- package/templates/create/svelte/package.json.hbs +2 -2
- package/templates/create/tanstack-start/package.json.hbs +2 -2
- package/templates/create/turborepo/package.json.hbs +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Create a Prisma 8 app with Prisma Composer built in.
|
|
4
4
|
|
|
5
|
-
Requires Node.js 22.
|
|
5
|
+
Requires Node.js 22.18 or newer, matching the Prisma CLI.
|
|
6
|
+
Generated apps must also meet their selected framework's Node.js requirements.
|
|
6
7
|
|
|
7
8
|
## Quick start
|
|
8
9
|
|
|
@@ -21,10 +22,7 @@ PostgreSQL apps with Composer include `@prisma/dev` as a project devDependency f
|
|
|
21
22
|
local Postgres. In a monorepo it belongs at the root, where Composer runs. Prisma 8
|
|
22
23
|
does not include this runtime itself. MongoDB and Deno-only apps do not need it.
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
Older npm releases can crash resolving the dependency tree (`Cannot read properties of null (reading 'edgesOut')`). Run
|
|
26
|
-
`npm install --global npm@11` to update. create-prisma checks the selected package manager
|
|
27
|
-
before writing project files and never upgrades your package manager automatically. Yarn 1 is not supported.
|
|
25
|
+
The npm that ships with a supported Node.js release works, including npm 10 on Node.js 22. create-prisma checks the selected package manager before writing project files and never upgrades your package manager automatically. Yarn 1 is not supported.
|
|
28
26
|
|
|
29
27
|
The deployment prompt is:
|
|
30
28
|
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as ApplicationLayer, i as runCreatePrismaCli } from "./src-
|
|
2
|
+
import { a as ApplicationLayer, i as runCreatePrismaCli } from "./src-DRmbnjIJ.mjs";
|
|
3
3
|
import { Effect } from "effect";
|
|
4
4
|
import { NodeRuntime } from "@effect/platform-node-shared";
|
|
5
5
|
//#region src/cli.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as AgentSkillTargetSchema, d as CreateTemplateSchema, f as DatabaseProviderSchema, i as runCreatePrismaCli, l as AuthoringStyleSchema, n as createCreatePrismaCli, o as CREATE_PRISMA_RESULT_SCHEMA_VERSION, p as PackageManagerSchema, r as createPrismaCommand, s as CreateCommandResultSchema, t as create, u as CreateCommandInputSchema } from "./src-
|
|
2
|
+
import { c as AgentSkillTargetSchema, d as CreateTemplateSchema, f as DatabaseProviderSchema, i as runCreatePrismaCli, l as AuthoringStyleSchema, n as createCreatePrismaCli, o as CREATE_PRISMA_RESULT_SCHEMA_VERSION, p as PackageManagerSchema, r as createPrismaCommand, s as CreateCommandResultSchema, t as create, u as CreateCommandInputSchema } from "./src-DRmbnjIJ.mjs";
|
|
3
3
|
export { AgentSkillTargetSchema, AuthoringStyleSchema, CREATE_PRISMA_RESULT_SCHEMA_VERSION, CreateCommandInputSchema, CreateCommandResultSchema, CreateTemplateSchema, DatabaseProviderSchema, PackageManagerSchema, create, createCreatePrismaCli, createPrismaCommand, runCreatePrismaCli };
|
|
@@ -10,7 +10,6 @@ import { createInterface } from "node:readline";
|
|
|
10
10
|
import { stripVTControlCharacters, styleText } from "node:util";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import os from "node:os";
|
|
13
|
-
import { PostHog } from "posthog-node";
|
|
14
13
|
import Handlebars from "handlebars";
|
|
15
14
|
import { fileURLToPath } from "node:url";
|
|
16
15
|
import { Writable } from "node:stream";
|
|
@@ -465,20 +464,14 @@ function getPackageManagerErrorCode(command, output) {
|
|
|
465
464
|
}
|
|
466
465
|
//#endregion
|
|
467
466
|
//#region src/telemetry/client.ts
|
|
468
|
-
const TELEMETRY_API_KEY = "
|
|
467
|
+
const TELEMETRY_API_KEY = "";
|
|
469
468
|
const TELEMETRY_HOST = "https://us.i.posthog.com";
|
|
470
469
|
const TELEMETRY_CONFIG_FILE = "telemetry.json";
|
|
471
470
|
const TELEMETRY_TIMEOUT_MS = 2e3;
|
|
472
471
|
const AnonymousId = Schema.String.check(Schema.isUUID(4));
|
|
473
472
|
const decodeAnonymousId = Schema.decodeUnknownExit(AnonymousId);
|
|
474
|
-
const isTruthyEnvValue = (value) => [
|
|
475
|
-
"1",
|
|
476
|
-
"true",
|
|
477
|
-
"yes",
|
|
478
|
-
"on"
|
|
479
|
-
].includes(String(value ?? "").trim().toLowerCase());
|
|
480
473
|
function shouldDisableTelemetry() {
|
|
481
|
-
return
|
|
474
|
+
return true;
|
|
482
475
|
}
|
|
483
476
|
function getTelemetryConfigDir() {
|
|
484
477
|
if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
|
|
@@ -502,35 +495,35 @@ const getAnonymousIdEffect = Effect.fn("Telemetry.getAnonymousId")(function* ()
|
|
|
502
495
|
return anonymousId;
|
|
503
496
|
});
|
|
504
497
|
const getCommonProperties = () => ({
|
|
505
|
-
"cli-version": "0.14.
|
|
498
|
+
"cli-version": "0.14.1-pr.128.420.1",
|
|
506
499
|
"node-version": process.version,
|
|
507
500
|
platform: process.platform,
|
|
508
501
|
arch: process.arch
|
|
509
502
|
});
|
|
510
503
|
const sanitizeProperties = (properties) => Object.fromEntries(Object.entries(properties).filter(([, value]) => value !== void 0));
|
|
511
|
-
const shutdownTelemetryClientEffect = (client, timeoutMs = TELEMETRY_TIMEOUT_MS) => Effect.tryPromise({
|
|
512
|
-
try: () => Promise.resolve(client.shutdown(timeoutMs)),
|
|
513
|
-
catch: () => void 0
|
|
514
|
-
}).pipe(Effect.timeout(timeoutMs), Effect.interruptible, Effect.catch(() => Effect.void));
|
|
515
504
|
const trackCliTelemetryEffect = Effect.fn("Telemetry.track")(function* (event, properties) {
|
|
516
505
|
if (shouldDisableTelemetry()) return;
|
|
517
506
|
const distinctId = yield* getAnonymousIdEffect();
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
507
|
+
yield* Effect.tryPromise(async (signal) => {
|
|
508
|
+
await (await fetch(new URL("/i/v0/e/", TELEMETRY_HOST), {
|
|
509
|
+
method: "POST",
|
|
510
|
+
headers: { "content-type": "application/json" },
|
|
511
|
+
redirect: "error",
|
|
512
|
+
body: JSON.stringify({
|
|
513
|
+
api_key: TELEMETRY_API_KEY,
|
|
514
|
+
distinct_id: distinctId,
|
|
515
|
+
event,
|
|
516
|
+
properties: sanitizeProperties({
|
|
517
|
+
...getCommonProperties(),
|
|
518
|
+
...properties,
|
|
519
|
+
$process_person_profile: false,
|
|
520
|
+
$geoip_disable: true
|
|
521
|
+
}),
|
|
522
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
523
|
+
}),
|
|
524
|
+
signal
|
|
525
|
+
})).body?.cancel();
|
|
526
|
+
});
|
|
534
527
|
});
|
|
535
528
|
//#endregion
|
|
536
529
|
//#region src/telemetry/create.ts
|
|
@@ -613,7 +606,7 @@ const trackCreateCompletedEffect = Effect.fn("Telemetry.createCompleted")(functi
|
|
|
613
606
|
yield* trackCliTelemetryEffect(params.context.operation === "orm_init" ? PRISMA_INIT_COMPLETED_EVENT : CREATE_PRISMA_NEXT_COMPLETED_EVENT, {
|
|
614
607
|
...getBaseCreateProperties(params.input, params.context),
|
|
615
608
|
"duration-ms": params.durationMs
|
|
616
|
-
}).pipe(Effect.
|
|
609
|
+
}).pipe(Effect.timeout(TELEMETRY_TIMEOUT_MS), Effect.catch(() => Effect.void));
|
|
617
610
|
});
|
|
618
611
|
const trackCreateFailedEffect = Effect.fn("Telemetry.createFailed")(function* (params) {
|
|
619
612
|
yield* trackCliTelemetryEffect(params.context?.operation === "orm_init" ? PRISMA_INIT_FAILED_EVENT : CREATE_PRISMA_NEXT_FAILED_EVENT, {
|
|
@@ -630,14 +623,14 @@ const trackCreateFailedEffect = Effect.fn("Telemetry.createFailed")(function* (p
|
|
|
630
623
|
"prisma-cli-error-code": getPrismaCliFailureProperty(params.error, "prismaCliErrorCode"),
|
|
631
624
|
"prisma-cli-cause-code": getPrismaCliCauseCodeProperty(params.error),
|
|
632
625
|
"package-manager-error-code": params.stage === "install_dependencies" ? getPackageManagerErrorCodeProperty(params.error) : null
|
|
633
|
-
}).pipe(Effect.
|
|
626
|
+
}).pipe(Effect.timeout(TELEMETRY_TIMEOUT_MS), Effect.catch(() => Effect.void));
|
|
634
627
|
});
|
|
635
628
|
const trackCreateCancelledEffect = Effect.fn("Telemetry.createCancelled")(function* (params) {
|
|
636
629
|
yield* trackCliTelemetryEffect(params.context?.operation === "orm_init" ? PRISMA_INIT_CANCELLED_EVENT : CREATE_PRISMA_NEXT_CANCELLED_EVENT, {
|
|
637
630
|
...getBaseCreateProperties(params.input, params.context),
|
|
638
631
|
"duration-ms": params.durationMs,
|
|
639
632
|
"cancellation-stage": params.stage
|
|
640
|
-
}).pipe(Effect.
|
|
633
|
+
}).pipe(Effect.timeout(TELEMETRY_TIMEOUT_MS), Effect.catch(() => Effect.void));
|
|
641
634
|
});
|
|
642
635
|
//#endregion
|
|
643
636
|
//#region src/constants/dependencies.ts
|
|
@@ -743,8 +736,17 @@ function getErrorMessage(error) {
|
|
|
743
736
|
//#endregion
|
|
744
737
|
//#region src/utils/package-manager.ts
|
|
745
738
|
const DENO_ALLOW_FRESH_DEPENDENCIES = "--minimum-dependency-age=0";
|
|
739
|
+
const npmForMinimumNode = {
|
|
740
|
+
node: [
|
|
741
|
+
22,
|
|
742
|
+
18,
|
|
743
|
+
0
|
|
744
|
+
],
|
|
745
|
+
fallback: "10.9.3",
|
|
746
|
+
majors: /* @__PURE__ */ new Set([10, 11])
|
|
747
|
+
};
|
|
746
748
|
const packageManagerManifestValues = {
|
|
747
|
-
npm:
|
|
749
|
+
npm: `npm@${npmForMinimumNode.fallback}`,
|
|
748
750
|
pnpm: "pnpm@11.28.5",
|
|
749
751
|
yarn: "yarn@4.18.1",
|
|
750
752
|
bun: "bun@1.4.2"
|
|
@@ -753,15 +755,7 @@ const packageManagerChecks = {
|
|
|
753
755
|
npm: {
|
|
754
756
|
name: "npm",
|
|
755
757
|
versionArgs: ["--version"],
|
|
756
|
-
install: "Install Node.js from https://nodejs.org to get npm"
|
|
757
|
-
minimum: {
|
|
758
|
-
version: [
|
|
759
|
-
11,
|
|
760
|
-
6,
|
|
761
|
-
0
|
|
762
|
-
],
|
|
763
|
-
guidance: "Older npm releases can crash while resolving Prisma dependencies. Run npm install --global npm@11, then retry create-prisma."
|
|
764
|
-
}
|
|
758
|
+
install: "Install Node.js from https://nodejs.org to get npm"
|
|
765
759
|
},
|
|
766
760
|
pnpm: {
|
|
767
761
|
name: "pnpm",
|
|
@@ -837,6 +831,7 @@ const probePackageManagerEffect = Effect.fn("PackageManager.probe")(function* (p
|
|
|
837
831
|
reason: "unsupported_package_manager_version",
|
|
838
832
|
message: `${name} ${version.join(".")} is unsupported. Required: ${name} ${minimum.version.join(".")} or newer. ${minimum.guidance}`
|
|
839
833
|
});
|
|
834
|
+
return version;
|
|
840
835
|
});
|
|
841
836
|
const verifyPackageManagerEffect = Effect.fn("PackageManager.verify")(function* (packageManager, projectDir) {
|
|
842
837
|
if (projectDir) return yield* probePackageManagerEffect(packageManager, projectDir);
|
|
@@ -851,7 +846,7 @@ const verifyPackageManagerEffect = Effect.fn("PackageManager.verify")(function*
|
|
|
851
846
|
message: `Could not prepare a directory to check ${packageManagerChecks[packageManager].name}: ${getErrorMessage(cause)}`,
|
|
852
847
|
cause
|
|
853
848
|
})));
|
|
854
|
-
yield* probePackageManagerEffect(packageManager, probeDir);
|
|
849
|
+
return yield* probePackageManagerEffect(packageManager, probeDir);
|
|
855
850
|
}, Effect.scoped);
|
|
856
851
|
function parseUserAgent(userAgent) {
|
|
857
852
|
if (userAgent?.startsWith("pnpm")) return "pnpm";
|
|
@@ -924,9 +919,10 @@ const detectPackageManagerEffect = Effect.fn("PackageManager.detect")(function*
|
|
|
924
919
|
if (fromUserAgent) return fromUserAgent;
|
|
925
920
|
return "npm";
|
|
926
921
|
});
|
|
927
|
-
function getPackageManagerManifestValue(packageManager) {
|
|
922
|
+
function getPackageManagerManifestValue(packageManager, detectedVersion) {
|
|
928
923
|
if (!packageManager) return;
|
|
929
924
|
if (packageManager === "deno") return;
|
|
925
|
+
if (packageManager === "npm" && detectedVersion && npmForMinimumNode.majors.has(detectedVersion[0])) return `npm@${detectedVersion.join(".")}`;
|
|
930
926
|
return packageManagerManifestValues[packageManager];
|
|
931
927
|
}
|
|
932
928
|
function getInstallCommand(packageManager) {
|
|
@@ -1081,7 +1077,6 @@ function getRunScriptArgs(packageManager, scriptName) {
|
|
|
1081
1077
|
//#region src/templates/shared.ts
|
|
1082
1078
|
Handlebars.registerHelper("eq", (left, right) => left === right);
|
|
1083
1079
|
Handlebars.registerHelper("runScriptCommand", (packageManager, scriptName) => packageManager ? getRunScriptCommand(packageManager, scriptName) : "");
|
|
1084
|
-
Handlebars.registerHelper("packageManagerManifestValue", (packageManager) => getPackageManagerManifestValue(packageManager) ?? "");
|
|
1085
1080
|
Handlebars.registerHelper("runtimeScript", (packageManager, kind, sourceEntrypoint, builtEntrypoint, _options) => packageManager ? getRuntimeScriptCommand(packageManager, kind, {
|
|
1086
1081
|
sourceEntrypoint,
|
|
1087
1082
|
builtEntrypoint
|
|
@@ -1155,6 +1150,7 @@ function createTemplateContext(options) {
|
|
|
1155
1150
|
provider: options.provider,
|
|
1156
1151
|
authoring: options.authoring,
|
|
1157
1152
|
packageManager: options.packageManager,
|
|
1153
|
+
packageManagerManifest: getPackageManagerManifestValue(options.packageManager, options.packageManagerVersion) ?? null,
|
|
1158
1154
|
skillAgents: options.skillAgents ?? agentSkillTargets,
|
|
1159
1155
|
tsdownEntry: tsdownEntries[options.template] ?? null
|
|
1160
1156
|
};
|
|
@@ -2299,7 +2295,7 @@ function getCreatePrismaIntro() {
|
|
|
2299
2295
|
//#region src/utils/node-version.ts
|
|
2300
2296
|
const MINIMUM_NODE_VERSION = [
|
|
2301
2297
|
22,
|
|
2302
|
-
|
|
2298
|
+
18,
|
|
2303
2299
|
0
|
|
2304
2300
|
];
|
|
2305
2301
|
function parseVersion(version) {
|
|
@@ -2321,7 +2317,7 @@ function supportsPrisma(nodeVersion = process.versions.node) {
|
|
|
2321
2317
|
function getUnsupportedNodeMessage(nodeVersion = process.versions.node) {
|
|
2322
2318
|
return [
|
|
2323
2319
|
`Node.js ${nodeVersion} is unsupported by create-prisma@latest.`,
|
|
2324
|
-
"Required: Node.js 22.
|
|
2320
|
+
"Required: Node.js 22.18 or newer.",
|
|
2325
2321
|
"Update Node.js and run the command again."
|
|
2326
2322
|
].join("\n");
|
|
2327
2323
|
}
|
|
@@ -2636,7 +2632,7 @@ const initializeExistingApp = Effect.fn("Create.initExisting")(function* (contex
|
|
|
2636
2632
|
initialization
|
|
2637
2633
|
};
|
|
2638
2634
|
});
|
|
2639
|
-
const executeCreateContext = Effect.fn("Create.execute")(function* (context) {
|
|
2635
|
+
const executeCreateContext = Effect.fn("Create.execute")(function* (context, packageManagerVersion) {
|
|
2640
2636
|
const output = context.prismaSetupContext.output;
|
|
2641
2637
|
const createSpinner = context.prismaSetupContext.verbose ? void 0 : spinner({ output });
|
|
2642
2638
|
yield* Effect.sync(() => {
|
|
@@ -2650,6 +2646,7 @@ const executeCreateContext = Effect.fn("Create.execute")(function* (context) {
|
|
|
2650
2646
|
provider: context.prismaSetupContext.databaseProvider,
|
|
2651
2647
|
authoring: context.prismaSetupContext.authoring,
|
|
2652
2648
|
packageManager: context.prismaSetupContext.packageManager,
|
|
2649
|
+
packageManagerVersion,
|
|
2653
2650
|
skillAgents: context.prismaSetupContext.skillAgents
|
|
2654
2651
|
}).pipe(Effect.andThen(writeCreateTemplateDependenciesEffect({
|
|
2655
2652
|
template: context.template,
|
|
@@ -2713,11 +2710,11 @@ const createProjectEffect = Effect.fn("Create.project")(function* (rawInput, inp
|
|
|
2713
2710
|
yield* Effect.sync(() => intro(getCreatePrismaIntro(), { output }));
|
|
2714
2711
|
const context = yield* atCreateStage(collectCreateContext(input), "collect_context", "unexpected_error");
|
|
2715
2712
|
yield* Ref.set(contextRef, Option.some(context));
|
|
2716
|
-
yield* atCreateStage(context.operation === "orm_init" ? verifyPackageManagerEffect(context.packageManager, context.targetDirectory) : verifyPackageManagerEffect(context.prismaSetupContext.packageManager), "validate_input", "package_manager_check_failed");
|
|
2713
|
+
const packageManagerVersion = yield* atCreateStage(context.operation === "orm_init" ? verifyPackageManagerEffect(context.packageManager, context.targetDirectory) : verifyPackageManagerEffect(context.prismaSetupContext.packageManager), "validate_input", "package_manager_check_failed");
|
|
2717
2714
|
return {
|
|
2718
2715
|
input,
|
|
2719
2716
|
context,
|
|
2720
|
-
result: context.operation === "orm_init" ? yield* initializeExistingApp(context, input) : yield* executeCreateContext(context)
|
|
2717
|
+
result: context.operation === "orm_init" ? yield* initializeExistingApp(context, input) : yield* executeCreateContext(context, packageManagerVersion)
|
|
2721
2718
|
};
|
|
2722
2719
|
});
|
|
2723
2720
|
const runCreateCommandEffect = Effect.fn("Create.run")(function* (rawInput = {}) {
|
|
@@ -2779,7 +2776,7 @@ function isJsonOutputRequested(argv) {
|
|
|
2779
2776
|
const writeJsonResult = Effect.fn("JsonOutput.write")((result) => Effect.sync(() => process.stdout.write(`${JSON.stringify(result)}\n`)));
|
|
2780
2777
|
//#endregion
|
|
2781
2778
|
//#region src/index.ts
|
|
2782
|
-
const CLI_VERSION = "0.14.
|
|
2779
|
+
const CLI_VERSION = "0.14.1-pr.128.420.1";
|
|
2783
2780
|
const optionalArgument = (name, description) => Argument.String(name).pipe(Argument.withDescription(description), Argument.optional, Argument.map(Option.getOrUndefined));
|
|
2784
2781
|
const optionalBoolean = (name, description) => Flag.Boolean(name).pipe(Flag.withDescription(description), Flag.optional, Flag.map(Option.getOrUndefined));
|
|
2785
2782
|
const optionalString = (name, description) => Flag.String(name).pipe(Flag.withDescription(description), Flag.optional, Flag.map(Option.getOrUndefined));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-prisma",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.1-pr.128.420.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Create Prisma 8 projects with first-party templates and great DX.",
|
|
6
6
|
"homepage": "https://github.com/prisma/create-prisma",
|
|
@@ -55,8 +55,7 @@
|
|
|
55
55
|
"@effect/platform-node-shared": "4.0.1",
|
|
56
56
|
"effect": "4.0.1",
|
|
57
57
|
"execa": "^10.0.1",
|
|
58
|
-
"handlebars": "^4.7.10"
|
|
59
|
-
"posthog-node": "^5.55.0"
|
|
58
|
+
"handlebars": "^4.7.10"
|
|
60
59
|
},
|
|
61
60
|
"devDependencies": {
|
|
62
61
|
"@prisma/dev": "0.25.2",
|
|
@@ -71,7 +70,7 @@
|
|
|
71
70
|
},
|
|
72
71
|
"engines": {
|
|
73
72
|
"bun": ">=1.3.0",
|
|
74
|
-
"node": ">=22.
|
|
73
|
+
"node": ">=22.18.0"
|
|
75
74
|
},
|
|
76
75
|
"packageManager": "bun@1.4.1"
|
|
77
76
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "{{projectName}}",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"version": "0.0.1",
|
|
5
|
-
{{#if
|
|
6
|
-
"packageManager": "{{
|
|
5
|
+
{{#if packageManagerManifest}}
|
|
6
|
+
"packageManager": "{{packageManagerManifest}}",
|
|
7
7
|
{{/if}}
|
|
8
8
|
"scripts": {
|
|
9
9
|
"dev": "astro dev",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "{{projectName}}",
|
|
3
3
|
"private": true,
|
|
4
|
-
{{#if
|
|
5
|
-
"packageManager": "{{
|
|
4
|
+
{{#if packageManagerManifest}}
|
|
5
|
+
"packageManager": "{{packageManagerManifest}}",
|
|
6
6
|
{{/if}}
|
|
7
7
|
"type": "module",
|
|
8
8
|
"engines": {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "{{projectName}}",
|
|
3
3
|
"private": true,
|
|
4
|
-
{{#if
|
|
5
|
-
"packageManager": "{{
|
|
4
|
+
{{#if packageManagerManifest}}
|
|
5
|
+
"packageManager": "{{packageManagerManifest}}",
|
|
6
6
|
{{/if}}
|
|
7
7
|
"type": "module",
|
|
8
8
|
"engines": {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "{{projectName}}",
|
|
3
3
|
"private": true,
|
|
4
|
-
{{#if
|
|
5
|
-
"packageManager": "{{
|
|
4
|
+
{{#if packageManagerManifest}}
|
|
5
|
+
"packageManager": "{{packageManagerManifest}}",
|
|
6
6
|
{{/if}}
|
|
7
7
|
"type": "module",
|
|
8
8
|
{{#unless (eq packageManager "deno")}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "{{projectName}}",
|
|
3
3
|
"private": true,
|
|
4
|
-
{{#if
|
|
5
|
-
"packageManager": "{{
|
|
4
|
+
{{#if packageManagerManifest}}
|
|
5
|
+
"packageManager": "{{packageManagerManifest}}",
|
|
6
6
|
{{/if}}
|
|
7
7
|
"type": "module",
|
|
8
8
|
"engines": {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "{{projectName}}",
|
|
3
3
|
"version": "0.1.0",
|
|
4
4
|
"private": true,
|
|
5
|
-
{{#if
|
|
6
|
-
"packageManager": "{{
|
|
5
|
+
{{#if packageManagerManifest}}
|
|
6
|
+
"packageManager": "{{packageManagerManifest}}",
|
|
7
7
|
{{/if}}
|
|
8
8
|
"type": "module",
|
|
9
9
|
"scripts": {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
},
|
|
7
7
|
"private": true,
|
|
8
8
|
"version": "0.0.1",
|
|
9
|
-
{{#if
|
|
10
|
-
"packageManager": "{{
|
|
9
|
+
{{#if packageManagerManifest}}
|
|
10
|
+
"packageManager": "{{packageManagerManifest}}",
|
|
11
11
|
{{/if}}
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "nuxt build",
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "{{projectName}}",
|
|
3
3
|
"private": true,
|
|
4
4
|
"version": "0.0.1",
|
|
5
|
-
{{#if
|
|
6
|
-
"packageManager": "{{
|
|
5
|
+
{{#if packageManagerManifest}}
|
|
6
|
+
"packageManager": "{{packageManagerManifest}}",
|
|
7
7
|
{{/if}}
|
|
8
8
|
"type": "module",
|
|
9
9
|
"imports": {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "{{projectName}}",
|
|
3
3
|
"private": true,
|
|
4
4
|
"version": "0.1.0",
|
|
5
|
-
{{#if
|
|
6
|
-
"packageManager": "{{
|
|
5
|
+
{{#if packageManagerManifest}}
|
|
6
|
+
"packageManager": "{{packageManagerManifest}}",
|
|
7
7
|
{{/if}}
|
|
8
8
|
"type": "module",
|
|
9
9
|
"scripts": {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "{{projectName}}",
|
|
3
3
|
"version": "0.1.0",
|
|
4
4
|
"private": true,
|
|
5
|
-
{{#if
|
|
6
|
-
"packageManager": "{{
|
|
5
|
+
{{#if packageManagerManifest}}
|
|
6
|
+
"packageManager": "{{packageManagerManifest}}",
|
|
7
7
|
{{/if}}
|
|
8
8
|
"type": "module",
|
|
9
9
|
"workspaces": [
|