motia 0.0.24 → 0.0.26

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.
Files changed (2) hide show
  1. package/dist/src/dev.js +5 -2
  2. package/package.json +3 -3
package/dist/src/dev.js CHANGED
@@ -28,8 +28,11 @@ const dev = async (port) => {
28
28
  motiaServer.server.listen(port);
29
29
  console.log('🚀 Server ready and listening on port', port);
30
30
  console.log(`🔗 Open http://localhost:${port}/ to open workbench 🛠️`);
31
- // eslint-disable-next-line @typescript-eslint/no-require-imports
32
- const { applyMiddleware } = require('@motiadev/workbench/dist/middleware');
31
+ const { applyMiddleware } = process.env.__MOTIA_DEV_MODE__
32
+ ? // eslint-disable-next-line @typescript-eslint/no-require-imports
33
+ require('@motiadev/workbench/middleware')
34
+ : // eslint-disable-next-line @typescript-eslint/no-require-imports
35
+ require('@motiadev/workbench/dist/middleware');
33
36
  await applyMiddleware(motiaServer.app);
34
37
  // 6) Gracefully shut down on SIGTERM
35
38
  process.on('SIGTERM', async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "motia",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
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.24",
18
- "@motiadev/workbench": "0.0.24"
17
+ "@motiadev/core": "0.0.26",
18
+ "@motiadev/workbench": "0.0.26"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/figlet": "^1.7.0",