sprint-es 0.0.58 → 0.0.60
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/dist/cjs/index.cjs +4 -4
- package/dist/esm/index.js +4 -4
- package/dist/types/sprint.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -91,7 +91,7 @@ async function findProjectRoot(startDir) {
|
|
|
91
91
|
return null;
|
|
92
92
|
}
|
|
93
93
|
async function loadSprintConfig() {
|
|
94
|
-
const callerDir = process.
|
|
94
|
+
const callerDir = process.cwd();
|
|
95
95
|
const projectRoot = await findProjectRoot(callerDir);
|
|
96
96
|
if (!projectRoot) return null;
|
|
97
97
|
const configFiles = ["sprint.config.ts", "sprint.config.js"];
|
|
@@ -144,6 +144,8 @@ class Sprint {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
|
+
console.log("PROJECT ROOT:", process.cwd());
|
|
148
|
+
console.log("CONFIG LOADED:", config);
|
|
147
149
|
const finalConfig = deepMerge(defaults, config || {});
|
|
148
150
|
this.port = finalConfig.port;
|
|
149
151
|
this.routesPath = finalConfig.routesPath || "./routes";
|
|
@@ -475,10 +477,8 @@ class Sprint {
|
|
|
475
477
|
const bold = "\x1B[1m";
|
|
476
478
|
const cyan = "\x1B[36m";
|
|
477
479
|
const dim = "\x1B[2m";
|
|
478
|
-
const VERSION = process.env.npm_package_version;
|
|
479
480
|
console.log("");
|
|
480
|
-
|
|
481
|
-
else console.log(` ${bold}${cyan}Sprint${reset} ready to handle requests`);
|
|
481
|
+
console.log(` ${bold}${cyan}Sprint${reset} ready to handle requests`);
|
|
482
482
|
console.log("");
|
|
483
483
|
console.log(` ${dim}Local:${reset} http://localhost:${bold}${port}${reset}`);
|
|
484
484
|
console.log(` ${dim}Prefix:${reset} ${bold}${prefixInfo}${reset}`);
|
package/dist/esm/index.js
CHANGED
|
@@ -66,7 +66,7 @@ async function findProjectRoot(startDir) {
|
|
|
66
66
|
return null;
|
|
67
67
|
}
|
|
68
68
|
async function loadSprintConfig() {
|
|
69
|
-
const callerDir = process.
|
|
69
|
+
const callerDir = process.cwd();
|
|
70
70
|
const projectRoot = await findProjectRoot(callerDir);
|
|
71
71
|
if (!projectRoot) return null;
|
|
72
72
|
const configFiles = ["sprint.config.ts", "sprint.config.js"];
|
|
@@ -119,6 +119,8 @@ class Sprint {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
|
+
console.log("PROJECT ROOT:", process.cwd());
|
|
123
|
+
console.log("CONFIG LOADED:", config);
|
|
122
124
|
const finalConfig = deepMerge(defaults, config || {});
|
|
123
125
|
this.port = finalConfig.port;
|
|
124
126
|
this.routesPath = finalConfig.routesPath || "./routes";
|
|
@@ -450,10 +452,8 @@ class Sprint {
|
|
|
450
452
|
const bold = "\x1B[1m";
|
|
451
453
|
const cyan = "\x1B[36m";
|
|
452
454
|
const dim = "\x1B[2m";
|
|
453
|
-
const VERSION = process.env.npm_package_version;
|
|
454
455
|
console.log("");
|
|
455
|
-
|
|
456
|
-
else console.log(` ${bold}${cyan}Sprint${reset} ready to handle requests`);
|
|
456
|
+
console.log(` ${bold}${cyan}Sprint${reset} ready to handle requests`);
|
|
457
457
|
console.log("");
|
|
458
458
|
console.log(` ${dim}Local:${reset} http://localhost:${bold}${port}${reset}`);
|
|
459
459
|
console.log(` ${dim}Prefix:${reset} ${bold}${prefixInfo}${reset}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sprint.d.ts","sourceRoot":"","sources":["../../src/sprint.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAA+B,gBAAgB,EAAoB,MAAM,SAAS,CAAC;AACnG,OAAO,OAAO,EAAE,EAAE,WAAW,EAAoD,MAAM,SAAS,CAAC;AAejG,eAAO,MAAM,aAAa,SAAQ,CAAC;AACnC,eAAO,MAAM,YAAY,SAAS,CAAC;AAoCnC,qBAAa,MAAM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