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.
- package/dist/cjs/bundle/index.js +3 -1
- package/dist/esm/bundle/index.js +3 -1
- package/dist/esm/cli.js +0 -0
- package/package.json +1 -1
- package/dist/cjs/api/index.js +0 -5
- package/dist/cjs/db/index.js +0 -5
- package/dist/esm/api/index.d.ts +0 -2
- package/dist/esm/api/index.js +0 -1
- package/dist/esm/db/index.d.ts +0 -2
- package/dist/esm/db/index.js +0 -1
package/dist/cjs/bundle/index.js
CHANGED
|
@@ -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
|
-
|
|
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 {
|
package/dist/esm/bundle/index.js
CHANGED
|
@@ -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
|
-
|
|
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
package/dist/cjs/api/index.js
DELETED
|
@@ -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; } });
|
package/dist/cjs/db/index.js
DELETED
|
@@ -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; } });
|
package/dist/esm/api/index.d.ts
DELETED
package/dist/esm/api/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createCaller } from '../caller/index.js';
|
package/dist/esm/db/index.d.ts
DELETED
package/dist/esm/db/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createTableClient } from '../runtime/index.js';
|