@sleepy-hollow/framework 0.3.1 → 0.3.2
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/CHANGELOG.md +9 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +15 -6
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to Sleepy Hollow are documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.3.2 - 2026-08-20
|
|
6
|
+
|
|
7
|
+
### Fixed: global `hollow` executable
|
|
8
|
+
|
|
9
|
+
The npm binary now resolves its invoked path before deciding whether it is the
|
|
10
|
+
main module. `hollow` therefore runs correctly when npm invokes `dist/cli.js`
|
|
11
|
+
through its normal global or local symlink, instead of silently exiting with
|
|
12
|
+
success and no output.
|
|
13
|
+
|
|
5
14
|
## 0.3.1 - 2026-08-20
|
|
6
15
|
|
|
7
16
|
### Changed: local Fly deployment preparation
|
package/dist/cli.d.ts
CHANGED
package/dist/cli.js
CHANGED
|
@@ -21,6 +21,7 @@ import "./chunk-LNJDFJGT.js";
|
|
|
21
21
|
import "./chunk-5WRI5ZAA.js";
|
|
22
22
|
|
|
23
23
|
// cli/main.ts
|
|
24
|
+
import { realpathSync } from "fs";
|
|
24
25
|
import { pathToFileURL as pathToFileURL4 } from "url";
|
|
25
26
|
|
|
26
27
|
// cli/adapters.ts
|
|
@@ -1005,7 +1006,7 @@ var CreationError = class extends Error {
|
|
|
1005
1006
|
};
|
|
1006
1007
|
|
|
1007
1008
|
// cli/create/create.ts
|
|
1008
|
-
var VERSION = "0.3.
|
|
1009
|
+
var VERSION = "0.3.2";
|
|
1009
1010
|
var NAME = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/;
|
|
1010
1011
|
function files(name) {
|
|
1011
1012
|
return {
|
|
@@ -1141,7 +1142,7 @@ async function pathExists(path) {
|
|
|
1141
1142
|
throw error;
|
|
1142
1143
|
}
|
|
1143
1144
|
}
|
|
1144
|
-
var FRAMEWORK_VERSION = "0.3.
|
|
1145
|
+
var FRAMEWORK_VERSION = "0.3.2";
|
|
1145
1146
|
async function createProject(options) {
|
|
1146
1147
|
if (!NAME.test(options.name) || options.name.length > 64) {
|
|
1147
1148
|
throw creationError(
|
|
@@ -2879,7 +2880,7 @@ function renderArtifacts(inventory2) {
|
|
|
2879
2880
|
];
|
|
2880
2881
|
const manifestContent = canonicalJson({
|
|
2881
2882
|
schema: "sleepy-hollow-generated-manifest/v1",
|
|
2882
|
-
generatorVersion: "0.3.
|
|
2883
|
+
generatorVersion: "0.3.2",
|
|
2883
2884
|
serviceId: normalized.serviceId,
|
|
2884
2885
|
inputDigest: digest2(input),
|
|
2885
2886
|
artifacts: Object.fromEntries(
|
|
@@ -3153,7 +3154,7 @@ function inventoryFromRoutes(routes2, options) {
|
|
|
3153
3154
|
return {
|
|
3154
3155
|
serviceId: options.serviceId,
|
|
3155
3156
|
title: options.title ?? options.serviceId,
|
|
3156
|
-
version: options.version ?? "0.3.
|
|
3157
|
+
version: options.version ?? "0.3.2",
|
|
3157
3158
|
...options.description ? { description: options.description } : {},
|
|
3158
3159
|
operations,
|
|
3159
3160
|
securitySchemes: options.securitySchemes ?? {}
|
|
@@ -4007,7 +4008,7 @@ var CLI_COMMANDS = [
|
|
|
4007
4008
|
"generate",
|
|
4008
4009
|
"deploy"
|
|
4009
4010
|
];
|
|
4010
|
-
var CLI_VERSION = "0.3.
|
|
4011
|
+
var CLI_VERSION = "0.3.2";
|
|
4011
4012
|
var commandMetadata = {
|
|
4012
4013
|
create: {
|
|
4013
4014
|
description: "Create one deterministic Sleepy Hollow project.",
|
|
@@ -5757,7 +5758,15 @@ function revision() {
|
|
|
5757
5758
|
function runCli(args, io, dependencies = {}) {
|
|
5758
5759
|
return runCommandSurface(args, io, createCliHandlers(dependencies));
|
|
5759
5760
|
}
|
|
5760
|
-
|
|
5761
|
+
function invokedAsCli(entry = process.argv[1]) {
|
|
5762
|
+
if (!entry) return false;
|
|
5763
|
+
try {
|
|
5764
|
+
return import.meta.url === pathToFileURL4(realpathSync(entry)).href;
|
|
5765
|
+
} catch {
|
|
5766
|
+
return false;
|
|
5767
|
+
}
|
|
5768
|
+
}
|
|
5769
|
+
if (invokedAsCli()) {
|
|
5761
5770
|
if (platform.args[0] === WORKER && platform.env.get("SLEEPY_HOLLOW_INTERNAL_DEV_WORKER") === "1") {
|
|
5762
5771
|
platform.exit(await runDevWorker(platform.args.slice(1)));
|
|
5763
5772
|
}
|