Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runs:
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v3
with:
node-version: '20.11.1'
node-version: '24.11.1'
cache: 'pnpm'

- name: Install dependencies
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/e2e-tests-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ jobs:
- name: Verify built CLI
run: |
# Verify the built CLI exists
if [ ! -f "packages/snap/dist/cjs/cli.js" ]; then
echo "❌ Built CLI not found at packages/snap/dist/cjs/cli.js"
if [ ! -f "packages/snap/dist/cli.mjs" ]; then
echo "❌ Built CLI not found at packages/snap/dist/cli.mjs"
echo "Available files in dist:"
ls -la packages/snap/dist/ || echo "dist directory not found"
exit 1
fi
# Make CLI executable through node
echo "✅ Built CLI found at packages/snap/dist/cjs/cli.js"
node packages/snap/dist/cjs/cli.js --version || echo "CLI version check failed"
echo "✅ Built CLI found at packages/snap/dist/cli.mjs"
node packages/snap/dist/cli.mjs --version || echo "CLI version check failed"
- name: Record test start time
run: echo "START_TIME=$(date +%s)" >> $GITHUB_ENV
Expand All @@ -122,7 +122,7 @@ jobs:
echo "🧪 Starting PR E2E tests - Template: ${{ matrix.template }}, OS: ${{ matrix.os }}"
# Export the built CLI path for tests to use
export MOTIA_CLI_PATH="$GITHUB_WORKSPACE/packages/snap/dist/cjs/cli.js"
export MOTIA_CLI_PATH="$GITHUB_WORKSPACE/packages/snap/dist/cli.mjs"
export MOTIA_ANALYTICS_DISABLED=true
export MOTIA_API_URL=http://localhost:3000
export MOTIA_TEST_TEMPLATE=${{ matrix.template }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4 # Versão mais recente
with:
node-version: '20.11.1'
node-version: '24.11.1'
cache: 'pnpm'

# Cache global do npm para melhor performance
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/motia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- 'docs/**'
- 'contributors/**'
- 'packages/docs/**'

push:
branches:
- main
Expand Down Expand Up @@ -42,7 +43,7 @@ jobs:
pnpm python-setup
- name: Run tests
run: PATH=python_modules/bin:$PATH pnpm -r run test
run: PATH=python_modules/bin:$PATH pnpm -r --filter='!./plugins/**' --filter='!./playground/**' run test

# Note: Publishing is now handled by the deploy.yml workflow
# This workflow only handles CI/CD quality checks
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
"$schema": "https://biomejs.dev/schemas/2.3.5/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
Expand Down
12 changes: 8 additions & 4 deletions packages/adapter-rabbitmq-events/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"name": "@motiadev/adapter-rabbitmq-events",
"description": "RabbitMQ event adapter for Motia framework, enabling distributed event handling across multiple instances.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
"version": "0.13.2-beta.163",
"scripts": {
"build": "rm -rf dist && tsc",
"build": "tsdown",
"dev": "tsdown --watch",
"lint": "biome check .",
"watch": "tsc --watch"
"clean": "rm -rf dist"
},
"dependencies": {
"@motiadev/core": "workspace:*",
Expand All @@ -16,6 +19,7 @@
},
"devDependencies": {
"@types/amqplib": "^0.10.5",
"tsdown": "^0.16.6",
"typescript": "^5.7.2"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-rabbitmq-events/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"module": "ESNext",
"lib": ["ES2020"],
"declaration": true,
"declarationMap": true,
Expand All @@ -12,7 +12,7 @@
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleResolution": "node"
"moduleResolution": "bundler"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
Expand Down
17 changes: 17 additions & 0 deletions packages/adapter-rabbitmq-events/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: {
index: './src/index.ts',
},
format: 'esm',
platform: 'node',
external: ['@motiadev/core', 'amqplib', 'uuid'],
dts: {
build: true,
},
clean: true,
outDir: 'dist',
sourcemap: true,
unbundle: true,
})
12 changes: 8 additions & 4 deletions packages/adapter-redis-cron/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"name": "@motiadev/adapter-redis-cron",
"description": "Redis cron adapter for Motia framework, enabling distributed cron job coordination to prevent duplicate executions across multiple instances.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
"version": "0.13.2-beta.163",
"scripts": {
"build": "rm -rf dist && tsc",
"build": "tsdown",
"dev": "tsdown --watch",
"lint": "biome check .",
"watch": "tsc --watch"
"clean": "rm -rf dist"
},
"dependencies": {
"@motiadev/core": "workspace:*",
Expand All @@ -16,6 +19,7 @@
},
"devDependencies": {
"@types/node": "^22.10.2",
"tsdown": "^0.16.6",
"typescript": "^5.7.2"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-redis-cron/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"module": "ESNext",
"lib": ["ES2020"],
"declaration": true,
"declarationMap": true,
Expand All @@ -12,7 +12,7 @@
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleResolution": "node"
"moduleResolution": "bundler"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
Expand Down
17 changes: 17 additions & 0 deletions packages/adapter-redis-cron/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: {
index: './src/index.ts',
},
format: 'esm',
platform: 'node',
external: ['@motiadev/core', 'redis', 'uuid'],
dts: {
build: true,
},
clean: true,
outDir: 'dist',
sourcemap: true,
unbundle: true,
})
12 changes: 8 additions & 4 deletions packages/adapter-redis-state/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
{
"name": "@motiadev/adapter-redis-state",
"description": "Redis state adapter for Motia framework, enabling distributed state management across multiple instances.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
"version": "0.13.2-beta.163",
"scripts": {
"build": "rm -rf dist && tsc",
"build": "tsdown",
"dev": "tsdown --watch",
"lint": "biome check .",
"watch": "tsc --watch"
"clean": "rm -rf dist"
},
"dependencies": {
"@motiadev/core": "workspace:*",
"redis": "^5.9.0"
},
"devDependencies": {
"@types/node": "^22.10.2",
"tsdown": "^0.16.6",
"typescript": "^5.7.2"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-redis-state/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"module": "ESNext",
"lib": ["ES2020"],
"declaration": true,
"declarationMap": true,
Expand All @@ -12,7 +12,7 @@
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleResolution": "node"
"moduleResolution": "bundler"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
Expand Down
17 changes: 17 additions & 0 deletions packages/adapter-redis-state/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: {
index: './src/index.ts',
},
format: 'esm',
platform: 'node',
external: ['@motiadev/core', 'redis'],
dts: {
build: true,
},
clean: true,
outDir: 'dist',
sourcemap: true,
unbundle: true,
})
12 changes: 8 additions & 4 deletions packages/adapter-redis-streams/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
{
"name": "@motiadev/adapter-redis-streams",
"description": "Redis streams adapter for Motia framework, enabling distributed stream management with real-time updates.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
"version": "0.13.2-beta.163",
"scripts": {
"build": "rm -rf dist && tsc",
"build": "tsdown",
"dev": "tsdown --watch",
"lint": "biome check .",
"watch": "tsc --watch"
"clean": "rm -rf dist"
},
"dependencies": {
"@motiadev/core": "workspace:*",
"redis": "^5.9.0"
},
"devDependencies": {
"@types/node": "^22.10.2",
"tsdown": "^0.16.6",
"typescript": "^5.7.2"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-redis-streams/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"module": "ESNext",
"lib": ["ES2020"],
"declaration": true,
"declarationMap": true,
Expand All @@ -12,7 +12,7 @@
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleResolution": "node"
"moduleResolution": "bundler"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
Expand Down
17 changes: 17 additions & 0 deletions packages/adapter-redis-streams/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: {
index: './src/index.ts',
},
format: 'esm',
platform: 'node',
external: ['@motiadev/core', 'redis'],
dts: {
build: true,
},
clean: true,
outDir: 'dist',
sourcemap: true,
unbundle: true,
})
Loading
Loading