Skip to content

Commit bcd29ba

Browse files
committed
refactor: streamline global setup for E2E tests by enhancing project creation and dependency management
fix: increase timeout for flows dropdown visibility check in WorkbenchPage refactor: enhance FlowTabMenuItem to display loading state for flows and improve dropdown menu structure fix: update runner path in language-runner to support custom TypeScript runner files in test mode chore: update pnpm-lock.yaml to upgrade various dependencies including prettier, eslint, express, and ts-jest, while ensuring compatibility with TypeScript and improving overall project stability refactor: enhance jsRunner path resolution in language-runner to support test mode with TypeScript and improve command arguments refactor: update jsRunner path resolution in language-runner to support test mode with TypeScript and module file extensions chore: update pnpm-lock.yaml and package.json to remove esbuild dependency and upgrade to esbuild version 0.25.12, while refactoring tsdown configuration and enhancing CLI functionality with Redis memory server management chore: update pnpm-lock.yaml and package.json to upgrade tsx version and refactor tsx loader path resolution in language-runner chore: update pnpm-lock.yaml and package.json for dependency adjustments, enhance TypeScript configuration for ES module support, and refactor test package structure chore: update CI workflow to exclude playground directory from tests chore: update CI workflow to exclude plugins directory from tests and enhance global setup with server output tracking chore: update pnpm-lock.yaml and package.json for dependency version upgrades and add plugins directory to workflow refactor: remove unused CSS plugins from tsdown configurations and clean up package.json files across multiple plugins fix: update pnpm-lock.yaml with dependency version adjustments and add warm-up functionality for Motia plugins in workbench middleware fix: update package.json and import paths for ES module compatibility in snap and stream-client packages fix: add module type to package.json for ES module support fix: update import paths in petstore step templates to use absolute paths and remove module type from package.json fix: update package.json and tsdown.config.ts to include esbuild and tsx dependencies, adjust TypeScript module settings for improved compatibility fix: change import statement in state-audit-cron step to use type import for Order fix: update import statements in petstore step templates to use type imports and add Babel plugin for React in workbench package.json fix: update pnpm-lock.yaml to adjust lucide-react version and remove unused dependencies, while refining TypeScript configuration in header component fix: update workbench middleware to include Babel plugin for React and remove unused Radix UI dependencies fix: update workbench configuration to include new Rollup URL plugin and adjust entry points for improved asset handling fix: update pnpm-lock.yaml with new dependencies, including Babel plugin, and adjust tsdown version for improved compatibility fix: update dependencies to latest versions, including React and Lucide, and integrate Babel plugin for improved JSX support fix: add React and ReactDOM as dependencies and remove unused example plugin from motia.config.ts fix: remove unused dependencies from pnpm-lock.yaml and ensure consistent versioning for React fix: update TypeScript configuration to support ES modules and refine project structure by removing unused dependencies in templates chore: add TypeScript configuration files for app and node environments in workbench fix: refactor import statements in motia.config.ts templates and remove unused dependencies from workbench fix: streamline import paths and remove unused dependencies in middleware and header components fix: update import paths for various components and add eslint configuration for workbench fix: update import statement for Order type to include .ts extension and export CronConfig type in core index fix: correct import statements in validate-event-input, button, and table components fix: update built CLI path in E2E tests to use .mjs extension chore: update Node.js version to 24.11.1 in setup actions fix: correct import path for utility functions in Empty component fix(tests): add missing on method in LockedData mock for middleware management tests chore: update schema version in biome.json to 2.3.5 chore: update package configurations and add tsdown config files for multiple packages
1 parent 99c35f8 commit bcd29ba

File tree

279 files changed

+10406
-6918
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

279 files changed

+10406
-6918
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ runs:
1313
- uses: pnpm/action-setup@v4
1414
- uses: actions/setup-node@v3
1515
with:
16-
node-version: '20.11.1'
16+
node-version: '24.11.1'
1717
cache: 'pnpm'
1818

1919
- name: Install dependencies

.github/workflows/e2e-tests-pr.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,16 @@ jobs:
9595
- name: Verify built CLI
9696
run: |
9797
# Verify the built CLI exists
98-
if [ ! -f "packages/snap/dist/cjs/cli.js" ]; then
99-
echo "❌ Built CLI not found at packages/snap/dist/cjs/cli.js"
98+
if [ ! -f "packages/snap/dist/cli.mjs" ]; then
99+
echo "❌ Built CLI not found at packages/snap/dist/cli.mjs"
100100
echo "Available files in dist:"
101101
ls -la packages/snap/dist/ || echo "dist directory not found"
102102
exit 1
103103
fi
104104
105105
# Make CLI executable through node
106-
echo "✅ Built CLI found at packages/snap/dist/cjs/cli.js"
107-
node packages/snap/dist/cjs/cli.js --version || echo "CLI version check failed"
106+
echo "✅ Built CLI found at packages/snap/dist/cli.mjs"
107+
node packages/snap/dist/cli.mjs --version || echo "CLI version check failed"
108108
109109
- name: Record test start time
110110
run: echo "START_TIME=$(date +%s)" >> $GITHUB_ENV
@@ -122,7 +122,7 @@ jobs:
122122
echo "🧪 Starting PR E2E tests - Template: ${{ matrix.template }}, OS: ${{ matrix.os }}"
123123
124124
# Export the built CLI path for tests to use
125-
export MOTIA_CLI_PATH="$GITHUB_WORKSPACE/packages/snap/dist/cjs/cli.js"
125+
export MOTIA_CLI_PATH="$GITHUB_WORKSPACE/packages/snap/dist/cli.mjs"
126126
export MOTIA_ANALYTICS_DISABLED=true
127127
export MOTIA_API_URL=http://localhost:3000
128128
export MOTIA_TEST_TEMPLATE=${{ matrix.template }}

.github/workflows/e2e-tests-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
- uses: pnpm/action-setup@v4
9999
- uses: actions/setup-node@v4 # Versão mais recente
100100
with:
101-
node-version: '20.11.1'
101+
node-version: '24.11.1'
102102
cache: 'pnpm'
103103

104104
# Cache global do npm para melhor performance

.github/workflows/motia.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- 'docs/**'
1212
- 'contributors/**'
1313
- 'packages/docs/**'
14+
1415
push:
1516
branches:
1617
- main
@@ -42,7 +43,7 @@ jobs:
4243
pnpm python-setup
4344
4445
- name: Run tests
45-
run: PATH=python_modules/bin:$PATH pnpm -r run test
46+
run: PATH=python_modules/bin:$PATH pnpm -r --filter='!./plugins/**' --filter='!./playground/**' run test
4647

4748
# Note: Publishing is now handled by the deploy.yml workflow
4849
# This workflow only handles CI/CD quality checks

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.5/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",

packages/adapter-rabbitmq-events/package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
{
22
"name": "@motiadev/adapter-rabbitmq-events",
33
"description": "RabbitMQ event adapter for Motia framework, enabling distributed event handling across multiple instances.",
4-
"main": "dist/index.js",
5-
"types": "dist/index.d.ts",
4+
"type": "module",
5+
"main": "dist/index.mjs",
6+
"module": "dist/index.mjs",
7+
"types": "dist/index.d.mts",
68
"version": "0.13.2-beta.163",
79
"scripts": {
8-
"build": "rm -rf dist && tsc",
10+
"build": "tsdown",
11+
"dev": "tsdown --watch",
912
"lint": "biome check .",
10-
"watch": "tsc --watch"
13+
"clean": "rm -rf dist"
1114
},
1215
"dependencies": {
1316
"@motiadev/core": "workspace:*",
@@ -16,6 +19,7 @@
1619
},
1720
"devDependencies": {
1821
"@types/amqplib": "^0.10.5",
22+
"tsdown": "^0.16.6",
1923
"typescript": "^5.7.2"
2024
},
2125
"peerDependencies": {

packages/adapter-rabbitmq-events/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4-
"module": "commonjs",
4+
"module": "ESNext",
55
"lib": ["ES2020"],
66
"declaration": true,
77
"declarationMap": true,
@@ -12,7 +12,7 @@
1212
"skipLibCheck": true,
1313
"forceConsistentCasingInFileNames": true,
1414
"resolveJsonModule": true,
15-
"moduleResolution": "node"
15+
"moduleResolution": "bundler"
1616
},
1717
"include": ["src/**/*"],
1818
"exclude": ["node_modules", "dist"]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { defineConfig } from 'tsdown'
2+
3+
export default defineConfig({
4+
entry: {
5+
index: './src/index.ts',
6+
},
7+
format: 'esm',
8+
platform: 'node',
9+
external: ['@motiadev/core', 'amqplib', 'uuid'],
10+
dts: {
11+
build: true,
12+
},
13+
clean: true,
14+
outDir: 'dist',
15+
sourcemap: true,
16+
unbundle: true,
17+
})

packages/adapter-redis-cron/package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
{
22
"name": "@motiadev/adapter-redis-cron",
33
"description": "Redis cron adapter for Motia framework, enabling distributed cron job coordination to prevent duplicate executions across multiple instances.",
4-
"main": "dist/index.js",
5-
"types": "dist/index.d.ts",
4+
"type": "module",
5+
"main": "dist/index.mjs",
6+
"module": "dist/index.mjs",
7+
"types": "dist/index.d.mts",
68
"version": "0.13.2-beta.163",
79
"scripts": {
8-
"build": "rm -rf dist && tsc",
10+
"build": "tsdown",
11+
"dev": "tsdown --watch",
912
"lint": "biome check .",
10-
"watch": "tsc --watch"
13+
"clean": "rm -rf dist"
1114
},
1215
"dependencies": {
1316
"@motiadev/core": "workspace:*",
@@ -16,6 +19,7 @@
1619
},
1720
"devDependencies": {
1821
"@types/node": "^22.10.2",
22+
"tsdown": "^0.16.6",
1923
"typescript": "^5.7.2"
2024
},
2125
"peerDependencies": {

packages/adapter-redis-cron/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4-
"module": "commonjs",
4+
"module": "ESNext",
55
"lib": ["ES2020"],
66
"declaration": true,
77
"declarationMap": true,
@@ -12,7 +12,7 @@
1212
"skipLibCheck": true,
1313
"forceConsistentCasingInFileNames": true,
1414
"resolveJsonModule": true,
15-
"moduleResolution": "node"
15+
"moduleResolution": "bundler"
1616
},
1717
"include": ["src/**/*"],
1818
"exclude": ["node_modules", "dist"]

0 commit comments

Comments
 (0)