crossroom 0.0.0-stage → 0.2.0

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.
@@ -0,0 +1,18 @@
1
+ import { createRequire as __parleyRequire } from 'node:module'; const require = __parleyRequire(import.meta.url);
2
+ import {
3
+ CHECK_EVERY_MS,
4
+ noteInstance,
5
+ notedInstances,
6
+ olderThan,
7
+ versionParts,
8
+ warnIfOutdated
9
+ } from "./chunk-IU22ASGZ.mjs";
10
+ import "./chunk-P7MSGDOB.mjs";
11
+ export {
12
+ CHECK_EVERY_MS,
13
+ noteInstance,
14
+ notedInstances,
15
+ olderThan,
16
+ versionParts,
17
+ warnIfOutdated
18
+ };
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __parleyRequire } from 'node:module'; const require = __parleyRequire(import.meta.url);
3
+ import "./chunk-P7MSGDOB.mjs";
4
+
5
+ // src/node-check.ts
6
+ var MIN = { major: 22, minor: 13 };
7
+ var [major = 0, minor = 0] = process.versions.node.split(".").map(Number);
8
+ if (major < MIN.major || major === MIN.major && minor < MIN.minor) {
9
+ console.error(
10
+ `Crossroom needs Node ${MIN.major}.${MIN.minor} or newer; this is ${process.versions.node}.
11
+ Below that, the SQLite module built into Node is behind a flag. Install a newer Node
12
+ (\`nvm install 24\` or \`fnm use 24\`) and run this again.`
13
+ );
14
+ process.exit(1);
15
+ }
16
+
17
+ // src/quiet-sqlite.ts
18
+ function dropSqliteWarning() {
19
+ const emit = process.emitWarning.bind(process);
20
+ process.emitWarning = ((warning, ...rest) => {
21
+ const text = typeof warning === "string" ? warning : warning.message;
22
+ if (/SQLite is an experimental feature/.test(text)) return;
23
+ emit(warning, ...rest);
24
+ });
25
+ }
26
+
27
+ // src/cli-main.ts
28
+ dropSqliteWarning();
29
+ var { run } = await import("./cli-CLTH3KTD.mjs");
30
+ process.exitCode = await run(process.argv.slice(2));