zitejs 0.9.35 → 0.9.36

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.
@@ -383,7 +383,9 @@ async function bundleEndpointsImpl(baseDir, endpointNames) {
383
383
  }
384
384
  async function bundleOneOffScriptImpl(scriptPath, sdkPath) {
385
385
  const rawScript = fs.readFileSync(scriptPath, 'utf-8');
386
- const plugin = createAliasPlugin({ sdkPath });
386
+ // baseDir (the app dir — callers cd in before `--script`) lets the alias
387
+ // plugin resolve zitejs/db & zitejs/backend to the generated .zite/ files.
388
+ const plugin = createAliasPlugin({ baseDir: process.cwd(), sdkPath });
387
389
  let importSection = '';
388
390
  let bodySection = rawScript;
389
391
  try {
@@ -347,7 +347,9 @@ async function bundleEndpointsImpl(baseDir, endpointNames) {
347
347
  }
348
348
  async function bundleOneOffScriptImpl(scriptPath, sdkPath) {
349
349
  const rawScript = fs.readFileSync(scriptPath, 'utf-8');
350
- const plugin = createAliasPlugin({ sdkPath });
350
+ // baseDir (the app dir — callers cd in before `--script`) lets the alias
351
+ // plugin resolve zitejs/db & zitejs/backend to the generated .zite/ files.
352
+ const plugin = createAliasPlugin({ baseDir: process.cwd(), sdkPath });
351
353
  let importSection = '';
352
354
  let bodySection = rawScript;
353
355
  try {
package/dist/esm/cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zitejs",
3
- "version": "0.9.35",
3
+ "version": "0.9.36",
4
4
  "description": "The Zite framework — build apps on Zite Database",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/runtime/index.js",
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createCaller = void 0;
4
- var index_js_1 = require("../caller/index.js");
5
- Object.defineProperty(exports, "createCaller", { enumerable: true, get: function () { return index_js_1.createCaller; } });
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createTableClient = void 0;
4
- var index_js_1 = require("../runtime/index.js");
5
- Object.defineProperty(exports, "createTableClient", { enumerable: true, get: function () { return index_js_1.createTableClient; } });
@@ -1,2 +0,0 @@
1
- export { createCaller } from '../caller/index.js';
2
- export type { EndpointConfig } from '../caller/index.js';
@@ -1 +0,0 @@
1
- export { createCaller } from '../caller/index.js';
@@ -1,2 +0,0 @@
1
- export { createTableClient } from '../runtime/index.js';
2
- export type { TableClient } from '../runtime/index.js';
@@ -1 +0,0 @@
1
- export { createTableClient } from '../runtime/index.js';