motia 0.8.5-beta.142 → 0.8.5-beta.143-790863
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/constants.js +6 -1
- package/dist/esm/constants.js +3 -1
- package/package.json +4 -4
- /package/dist/cjs/create/templates/nodejs/{steps → tutorial}/petstore/api.step.ts-features.json.txt +0 -0
- /package/dist/cjs/create/templates/nodejs/{steps → tutorial}/petstore/process-food-order.step.ts-features.json.txt +0 -0
- /package/dist/cjs/create/templates/nodejs/{steps → tutorial}/petstore/state-audit-cron.step.ts-features.json.txt +0 -0
- /package/dist/cjs/create/templates/nodejs/{tutorial.tsx.txt → tutorial/tutorial.tsx.txt} +0 -0
- /package/dist/esm/create/templates/nodejs/{steps → tutorial}/petstore/api.step.ts-features.json.txt +0 -0
- /package/dist/esm/create/templates/nodejs/{steps → tutorial}/petstore/process-food-order.step.ts-features.json.txt +0 -0
- /package/dist/esm/create/templates/nodejs/{steps → tutorial}/petstore/state-audit-cron.step.ts-features.json.txt +0 -0
- /package/dist/esm/create/templates/nodejs/{tutorial.tsx.txt → tutorial/tutorial.tsx.txt} +0 -0
package/dist/cjs/constants.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.isTutorialDisabled = exports.workbenchBase = void 0;
|
|
7
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
8
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
4
9
|
function getWorkbenchBase() {
|
|
5
10
|
const basePath = process.env.MOTIA_WORKBENCH_BASE;
|
|
6
11
|
if (basePath === '/') {
|
|
@@ -9,4 +14,4 @@ function getWorkbenchBase() {
|
|
|
9
14
|
return basePath && basePath[0] !== '/' ? `/${basePath}` : basePath || '';
|
|
10
15
|
}
|
|
11
16
|
exports.workbenchBase = getWorkbenchBase();
|
|
12
|
-
exports.isTutorialDisabled = process.env.MOTIA_TUTORIAL_DISABLED === 'true';
|
|
17
|
+
exports.isTutorialDisabled = process.env.MOTIA_TUTORIAL_DISABLED === 'true' || !node_fs_1.default.existsSync(node_path_1.default.join(process.cwd(), 'tutorial/tutorial.tsx'));
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
1
3
|
function getWorkbenchBase() {
|
|
2
4
|
const basePath = process.env.MOTIA_WORKBENCH_BASE;
|
|
3
5
|
if (basePath === '/') {
|
|
@@ -6,4 +8,4 @@ function getWorkbenchBase() {
|
|
|
6
8
|
return basePath && basePath[0] !== '/' ? `/${basePath}` : basePath || '';
|
|
7
9
|
}
|
|
8
10
|
export const workbenchBase = getWorkbenchBase();
|
|
9
|
-
export const isTutorialDisabled = process.env.MOTIA_TUTORIAL_DISABLED === 'true';
|
|
11
|
+
export const isTutorialDisabled = process.env.MOTIA_TUTORIAL_DISABLED === 'true' || !fs.existsSync(path.join(process.cwd(), 'tutorial/tutorial.tsx'));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "motia",
|
|
3
3
|
"description": "A Modern Unified Backend Framework for APIs, Events and Agents",
|
|
4
|
-
"version": "0.8.5-beta.
|
|
4
|
+
"version": "0.8.5-beta.143-790863",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"python-ast": "^0.1.0",
|
|
47
47
|
"table": "^6.9.0",
|
|
48
48
|
"ts-node": "^10.9.2",
|
|
49
|
-
"@motiadev/core": "0.8.5-beta.
|
|
50
|
-
"@motiadev/
|
|
51
|
-
"@motiadev/
|
|
49
|
+
"@motiadev/core": "0.8.5-beta.143-790863",
|
|
50
|
+
"@motiadev/stream-client-node": "0.8.5-beta.143-790863",
|
|
51
|
+
"@motiadev/workbench": "0.8.5-beta.143-790863"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@amplitude/analytics-types": "^2.9.2",
|
/package/dist/cjs/create/templates/nodejs/{steps → tutorial}/petstore/api.step.ts-features.json.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/esm/create/templates/nodejs/{steps → tutorial}/petstore/api.step.ts-features.json.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|