gorsee 0.2.6 → 0.2.7
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.
|
@@ -191,7 +191,7 @@ dist/
|
|
|
191
191
|
*.sqlite
|
|
192
192
|
*.db
|
|
193
193
|
.DS_Store
|
|
194
|
-
`, PACKAGE_MANAGER = "bun@1.3.9", CREATE_TEMPLATES = ["basic", "secure-saas", "content-site", "agent-aware-ops", "workspace-monorepo"],
|
|
194
|
+
`, PACKAGE_MANAGER = "bun@1.3.9", REPO_ROOT = fileURLToPath(new URL("../../", import.meta.url)), FRAMEWORK_VERSION = JSON.parse(await readFile(join(REPO_ROOT, "package.json"), "utf-8")), FRAMEWORK_PACKAGE_VERSION = FRAMEWORK_VERSION.version, CREATE_TEMPLATES = ["basic", "secure-saas", "content-site", "agent-aware-ops", "workspace-monorepo"], TEMPLATE_DEFINITIONS = {
|
|
195
195
|
"secure-saas": {
|
|
196
196
|
sourceDir: join(REPO_ROOT, "examples/secure-saas"),
|
|
197
197
|
readmeDescription: "Authenticated SaaS starter with protected route groups, explicit auth middleware, and private cache semantics.",
|
|
@@ -244,7 +244,7 @@ dist/
|
|
|
244
244
|
webPackageJson.packageManager = PACKAGE_MANAGER;
|
|
245
245
|
webPackageJson.scripts = createPackageScripts();
|
|
246
246
|
webPackageJson.dependencies = {
|
|
247
|
-
gorsee:
|
|
247
|
+
gorsee: FRAMEWORK_PACKAGE_VERSION,
|
|
248
248
|
"@workspace/shared": "workspace:*"
|
|
249
249
|
};
|
|
250
250
|
await writeFile(webPackagePath, JSON.stringify(webPackageJson, null, 2) + `
|
|
@@ -263,10 +263,10 @@ dist/
|
|
|
263
263
|
};
|
|
264
264
|
function createPackageScripts() {
|
|
265
265
|
return {
|
|
266
|
-
dev: "gorsee dev",
|
|
267
|
-
build: "gorsee build",
|
|
268
|
-
start: "gorsee start",
|
|
269
|
-
check: "gorsee check"
|
|
266
|
+
dev: "bun run ./node_modules/gorsee/dist-pkg/bin/gorsee.js dev",
|
|
267
|
+
build: "bun run ./node_modules/gorsee/dist-pkg/bin/gorsee.js build",
|
|
268
|
+
start: "bun run ./node_modules/gorsee/dist-pkg/bin/gorsee.js start",
|
|
269
|
+
check: "bun run ./node_modules/gorsee/dist-pkg/bin/gorsee.js check"
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
272
|
function normalizePackageName(name) {
|
|
@@ -337,7 +337,7 @@ async function normalizeSinglePackageManifest(packageJsonPath, packageName) {
|
|
|
337
337
|
packageJson.scripts = createPackageScripts();
|
|
338
338
|
packageJson.dependencies = {
|
|
339
339
|
...packageJson.dependencies ?? {},
|
|
340
|
-
gorsee:
|
|
340
|
+
gorsee: FRAMEWORK_PACKAGE_VERSION
|
|
341
341
|
};
|
|
342
342
|
await writeFile(packageJsonPath, JSON.stringify(packageJson, null, 2) + `
|
|
343
343
|
`);
|
|
@@ -408,7 +408,7 @@ async function createBasicProject(dir, name) {
|
|
|
408
408
|
packageManager: PACKAGE_MANAGER,
|
|
409
409
|
scripts: createPackageScripts(),
|
|
410
410
|
dependencies: {
|
|
411
|
-
gorsee:
|
|
411
|
+
gorsee: FRAMEWORK_PACKAGE_VERSION
|
|
412
412
|
},
|
|
413
413
|
devDependencies: {
|
|
414
414
|
"@types/bun": "1.3.10"
|