ultimabase 0.1.0 → 0.1.1
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 +6 -0
- package/dist/cli-main.d.ts +0 -1
- package/dist/cli-main.d.ts.map +1 -1
- package/dist/cli-main.js +7 -3
- package/package.json +2 -2
- package/src/cli-main.ts +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# ultimabase
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- The published starter starts: `ultimabase dev` runs `dist/serve.js`, and `@ultimabase/realtime`, which `@ultimabase/graphql` and `@ultimabase/rest` import, is a required peer the starter lists.
|
|
8
|
+
|
|
3
9
|
## 0.1.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/cli-main.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export type Io = {
|
|
|
6
6
|
/** Runs Node with `args` until it exits, and returns its exit code. */
|
|
7
7
|
readonly node: (args: readonly string[]) => Promise<number>;
|
|
8
8
|
};
|
|
9
|
-
/** The file `dev` runs under `node --watch`. */
|
|
10
9
|
export declare const serveFile: string;
|
|
11
10
|
export declare const processIo: Io;
|
|
12
11
|
/** Runs the command `args` name, and returns its exit code. */
|
package/dist/cli-main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-main.d.ts","sourceRoot":"","sources":["../src/cli-main.ts"],"names":[],"mappings":"AAyBA,MAAM,MAAM,EAAE,GAAG;IAChB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,QAAQ,CAAC,GAAG,EAAE,MAAM,IAAI,CAAA;IACxB,uEAAuE;IACvE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CAC3D,CAAA;
|
|
1
|
+
{"version":3,"file":"cli-main.d.ts","sourceRoot":"","sources":["../src/cli-main.ts"],"names":[],"mappings":"AAyBA,MAAM,MAAM,EAAE,GAAG;IAChB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,QAAQ,CAAC,GAAG,EAAE,MAAM,IAAI,CAAA;IACxB,uEAAuE;IACvE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CAC3D,CAAA;AAOD,eAAO,MAAM,SAAS,EAAE,MAAqD,CAAA;AAe7E,eAAO,MAAM,SAAS,EAAE,EAMvB,CAAA;AAiFD,+DAA+D;AAC/D,wBAAsB,IAAI,CACzB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,GAAE,EAAc,GAChB,OAAO,CAAC,MAAM,CAAC,CAMjB;AAED,2DAA2D;AAC3D,wBAAsB,KAAK,CAC1B,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,EAAE,GAAE,EAAc,GAChB,OAAO,CAAC,MAAM,CAAC,CAQjB"}
|
package/dist/cli-main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// The `ultimabase` command (D-105): `dev`, `start`, `sync`, `reset` and
|
|
2
2
|
// `migrate`.
|
|
3
3
|
import { spawn } from 'node:child_process';
|
|
4
|
-
import { dirname, join } from 'node:path';
|
|
4
|
+
import { dirname, extname, join } from 'node:path';
|
|
5
5
|
import { fileURLToPath } from 'node:url';
|
|
6
6
|
import { parseArgs } from 'node:util';
|
|
7
7
|
import { configPath, load } from './cli-config.js';
|
|
@@ -21,8 +21,12 @@ const usage = `Usage: ultimabase <command> [--config <path>]
|
|
|
21
21
|
empty one for your SQL.
|
|
22
22
|
migrate deploy Apply the pending migrations.
|
|
23
23
|
migrate status Say what a deploy would do; exit 1 if anything.`;
|
|
24
|
-
/**
|
|
25
|
-
|
|
24
|
+
/**
|
|
25
|
+
* The file `dev` runs under `node --watch`: `serve.ts` beside the sources,
|
|
26
|
+
* `serve.js` in the published `dist`.
|
|
27
|
+
*/
|
|
28
|
+
const here = fileURLToPath(import.meta.url);
|
|
29
|
+
export const serveFile = join(dirname(here), `serve${extname(here)}`);
|
|
26
30
|
function runNode(args) {
|
|
27
31
|
return new Promise((done, fail) => {
|
|
28
32
|
const child = spawn(process.execPath, args, { stdio: 'inherit' });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultimabase",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "The UltimaBase kernel and its in-memory adapter.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"semver": "7.8.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@ultimabase/testing": "0.1.
|
|
41
|
+
"@ultimabase/testing": "0.1.1",
|
|
42
42
|
"vite": "8.3.4",
|
|
43
43
|
"vitest": "5.0.5"
|
|
44
44
|
}
|
package/src/cli-main.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// The `ultimabase` command (D-105): `dev`, `start`, `sync`, `reset` and
|
|
2
2
|
// `migrate`.
|
|
3
3
|
import { spawn } from 'node:child_process'
|
|
4
|
-
import { dirname, join } from 'node:path'
|
|
4
|
+
import { dirname, extname, join } from 'node:path'
|
|
5
5
|
import { fileURLToPath } from 'node:url'
|
|
6
6
|
import { parseArgs } from 'node:util'
|
|
7
7
|
import { configPath, load } from './cli-config.ts'
|
|
@@ -32,11 +32,12 @@ export type Io = {
|
|
|
32
32
|
readonly node: (args: readonly string[]) => Promise<number>
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
)
|
|
35
|
+
/**
|
|
36
|
+
* The file `dev` runs under `node --watch`: `serve.ts` beside the sources,
|
|
37
|
+
* `serve.js` in the published `dist`.
|
|
38
|
+
*/
|
|
39
|
+
const here = fileURLToPath(import.meta.url)
|
|
40
|
+
export const serveFile: string = join(dirname(here), `serve${extname(here)}`)
|
|
40
41
|
|
|
41
42
|
function runNode(args: readonly string[]): Promise<number> {
|
|
42
43
|
return new Promise((done, fail) => {
|