motia 0.0.28 → 0.0.29
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/src/cli.js +2 -1
- package/dist/src/dev.js +3 -2
- package/package.json +3 -3
package/dist/src/cli.js
CHANGED
|
@@ -40,6 +40,7 @@ commander_1.program
|
|
|
40
40
|
.command('dev')
|
|
41
41
|
.description('Start the development server')
|
|
42
42
|
.option('-p, --port <port>', 'The port to run the server on', `${defaultPort}`)
|
|
43
|
+
.option('-v, --verbose', 'Enable verbose logging')
|
|
43
44
|
.option('-d, --debug', 'Enable debug logging')
|
|
44
45
|
.action(async (arg) => {
|
|
45
46
|
if (arg.debug) {
|
|
@@ -48,7 +49,7 @@ commander_1.program
|
|
|
48
49
|
}
|
|
49
50
|
const port = arg.port ? parseInt(arg.port) : defaultPort;
|
|
50
51
|
const { dev } = require('./dev'); // eslint-disable-line @typescript-eslint/no-require-imports
|
|
51
|
-
await dev(port);
|
|
52
|
+
await dev(port, arg.verbose);
|
|
52
53
|
});
|
|
53
54
|
commander_1.program
|
|
54
55
|
.command('get-config')
|
package/dist/src/dev.js
CHANGED
|
@@ -14,7 +14,7 @@ require('ts-node').register({
|
|
|
14
14
|
transpileOnly: true,
|
|
15
15
|
compilerOptions: { module: 'commonjs' },
|
|
16
16
|
});
|
|
17
|
-
const dev = async (port) => {
|
|
17
|
+
const dev = async (port, isVerbose) => {
|
|
18
18
|
const baseDir = process.cwd();
|
|
19
19
|
const lockedData = await (0, generate_locked_data_1.generateLockedData)(baseDir);
|
|
20
20
|
const eventManager = (0, core_1.createEventManager)();
|
|
@@ -23,7 +23,8 @@ const dev = async (port) => {
|
|
|
23
23
|
filePath: path_1.default.join(baseDir, '.motia'),
|
|
24
24
|
});
|
|
25
25
|
await state.init();
|
|
26
|
-
const
|
|
26
|
+
const config = { isVerbose };
|
|
27
|
+
const motiaServer = await (0, core_1.createServer)(lockedData, eventManager, state, config);
|
|
27
28
|
const motiaEventManager = (0, core_1.createStepHandlers)(lockedData, eventManager, state);
|
|
28
29
|
const watcher = (0, dev_watchers_1.createDevWatchers)(lockedData, motiaServer, motiaEventManager, motiaServer.cronManager);
|
|
29
30
|
watcher.init();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "motia",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"motia": "dist/src/cli.js"
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"inquirer": "^12.4.1",
|
|
15
15
|
"ts-node": "^10.9.2",
|
|
16
16
|
"yaml": "^2.7.0",
|
|
17
|
-
"@motiadev/core": "0.0.
|
|
18
|
-
"@motiadev/workbench": "0.0.
|
|
17
|
+
"@motiadev/core": "0.0.29",
|
|
18
|
+
"@motiadev/workbench": "0.0.29"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/figlet": "^1.7.0",
|