@decohere/scaffold 0.0.1-dev.93 → 0.0.1-dev.94

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.
@@ -42,7 +42,7 @@ class PackageJson {
42
42
  build: "forge build --configuration release",
43
43
  "build:watch": "forge build --watch",
44
44
  start: `node ${startEntry}`,
45
- dev: namedOrMany ? fluxDevScript(workspaceName, first, (0, _const.webapiPort)(0)) : "flux serve",
45
+ dev: namedOrMany ? fluxDevScript(workspaceName, first, (0, _const.webapiPort)(0)) : "flux serve --env-file-if-exists .env",
46
46
  "lint:check": "biome check .",
47
47
  typecheck: "forge typecheck",
48
48
  test: "vitest run --passWithNoTests"
@@ -143,5 +143,5 @@ function sortStringMap(map) {
143
143
  return Object.fromEntries(Object.entries(map).sort(([left], [right])=>left.localeCompare(right, "en")));
144
144
  }
145
145
  function fluxDevScript(workspaceName, apiName, port) {
146
- return `PORT=${port} flux serve --project ${(0, _const.webapiPackageName)(workspaceName, apiName)}`;
146
+ return `PORT=${port} flux serve --env-file-if-exists .env --project ${(0, _const.webapiPackageName)(workspaceName, apiName)}`;
147
147
  }
@@ -230,7 +230,7 @@ function createAddWorkspace(targetDir, projectName, apiNames) {
230
230
  for (const [offset, apiName] of apiNames.entries()){
231
231
  const port = (0, _const1.webapiPort)(existing.length + offset);
232
232
  pkg.addScript(`start:${apiName}`, `node ${(0, _const1.webapiReleaseEntry)(apiName)}`);
233
- pkg.addScript(`dev:${apiName}`, `PORT=${port} flux serve --project ${(0, _const1.webapiPackageName)(name, apiName)}`);
233
+ pkg.addScript(`dev:${apiName}`, `PORT=${port} flux serve --env-file-if-exists .env --project ${(0, _const1.webapiPackageName)(name, apiName)}`);
234
234
  addApiProject(monoRepo, name, apiName);
235
235
  }
236
236
  monoRepo.addModel(new _productiondockerfilemodel.WebapiProductionDockerfile(apiNames, {
@@ -30,7 +30,7 @@ import { WELL_KNOWN_FILES } from "./const.js";
30
30
  build: "forge build --configuration release",
31
31
  "build:watch": "forge build --watch",
32
32
  start: `node ${startEntry}`,
33
- dev: namedOrMany ? fluxDevScript(workspaceName, first, webapiPort(0)) : "flux serve",
33
+ dev: namedOrMany ? fluxDevScript(workspaceName, first, webapiPort(0)) : "flux serve --env-file-if-exists .env",
34
34
  "lint:check": "biome check .",
35
35
  typecheck: "forge typecheck",
36
36
  test: "vitest run --passWithNoTests"
@@ -131,5 +131,5 @@ function asStringMap(value) {
131
131
  return Object.fromEntries(Object.entries(map).sort(([left], [right])=>left.localeCompare(right, "en")));
132
132
  }
133
133
  function fluxDevScript(workspaceName, apiName, port) {
134
- return `PORT=${port} flux serve --project ${webapiPackageName(workspaceName, apiName)}`;
134
+ return `PORT=${port} flux serve --env-file-if-exists .env --project ${webapiPackageName(workspaceName, apiName)}`;
135
135
  }
@@ -210,7 +210,7 @@ function createAddWorkspace(targetDir, projectName, apiNames) {
210
210
  for (const [offset, apiName] of apiNames.entries()){
211
211
  const port = webapiPort(existing.length + offset);
212
212
  pkg.addScript(`start:${apiName}`, `node ${webapiReleaseEntry(apiName)}`);
213
- pkg.addScript(`dev:${apiName}`, `PORT=${port} flux serve --project ${webapiPackageName(name, apiName)}`);
213
+ pkg.addScript(`dev:${apiName}`, `PORT=${port} flux serve --env-file-if-exists .env --project ${webapiPackageName(name, apiName)}`);
214
214
  addApiProject(monoRepo, name, apiName);
215
215
  }
216
216
  monoRepo.addModel(new WebapiProductionDockerfile(apiNames, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decohere/scaffold",
3
- "version": "0.0.1-dev.93",
3
+ "version": "0.0.1-dev.94",
4
4
  "description": "Decohere project scaffolder (runs inside ghcr.io/typesmiths/decohere/create)",
5
5
  "keywords": [
6
6
  "decohere",
@@ -22,8 +22,8 @@
22
22
  "test": "echo \"Error: no test specified\" && exit 1"
23
23
  },
24
24
  "dependencies": {
25
- "@decohere/crucible": "0.0.1-dev.93",
26
- "@decohere/nexus": "0.0.1-dev.93",
25
+ "@decohere/crucible": "0.0.1-dev.94",
26
+ "@decohere/nexus": "0.0.1-dev.94",
27
27
  "commander": "^13.1.0",
28
28
  "openapi-to-postmanv2": "^5.0.0",
29
29
  "yaml": "^2.9.1"