Skip to content
This repository was archived by the owner on Jun 10, 2026. It is now read-only.
Merged
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
23 changes: 13 additions & 10 deletions .moon/tasks/node-library.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
$schema: 'https://moonrepo.dev/schemas/tasks.json'
$schema: ../cache/schemas/tasks.json

inheritedBy:
toolchain: node
layer: library

tasks:
# https://moonrepo.dev/docs/guides/examples/packemon
build:
command: 'packemon'
command: packemon
args:
- 'build'
- '--addEngines'
- '--addExports'
- '--declaration'
- build
- --addEngines
- --addExports
- --declaration
inputs:
- '@globs(sources)'
- '@globs(typescript)'
- 'package.json'
- package.json
outputs:
- 'lib'
- lib
env:
NODE_ENV: 'production'
NODE_ENV: production
94 changes: 44 additions & 50 deletions .moon/tasks/node.yml
Original file line number Diff line number Diff line change
@@ -1,96 +1,90 @@
$schema: 'https://moonrepo.dev/schemas/tasks.json'
$schema: ../cache/schemas/tasks.json

inheritedBy:
toolchain: node

# Instead of fine tuning each project, always build dependencies and rely on the cache
implicitDeps:
- '^:build'
- ^:build

implicitInputs:
- 'package.json'
- package.json

fileGroups:
configs:
- '*.{js,cjs,mjs,json}'
sources:
- 'src/**/*'
- 'types/**/*'
- src/**/*
- types/**/*
tests:
- 'tests/**/*.test.*'
- tests/**/*.test.*
- '**/__tests__/**/*'
assets:
- 'assets/**/*'
- 'images/**/*'
- 'static/**/*'
- assets/**/*
- images/**/*
- static/**/*
- '**/*.{scss,css}'
- '**/*.mdx'
typescript:
- 'tsconfig.json'
- 'tsconfig.*.json'
- '/tsconfig.json'
- '/tsconfig.*.json'
- tsconfig.json
- tsconfig.*.json
- /tsconfig.json
- /tsconfig.*.json

tasks:
# https://moonrepo.dev/docs/guides/examples/prettier
format:
command: 'prettier'
command: prettier
args:
- '--config'
- --config
- '@in(1)'
- '--ignore-path'
- --ignore-path
- '@in(0)'
- '--check'
- '.'
- --check
- .
inputs:
- '/.prettierignore'
- '/.prettierrc.js'
- /.prettierignore
- /.prettierrc.js
- '@globs(configs)'
- '@globs(sources)'
- '@globs(tests)'
- '**/*.{md,mdx,yml,yaml,json}'

format-write:
command: 'prettier'
command: prettier
args:
- '--config'
- --config
- '@in(1)'
- '--ignore-path'
- --ignore-path
- '@in(0)'
- '--write'
- '.'
- --write
- .
inputs:
- '/.prettierignore'
- '/.prettierrc.js'
local: true

# https://moonrepo.dev/docs/guides/examples/eslint
- /.prettierignore
- /.prettierrc.js
preset: server
lint:
command: 'eslint'
command: eslint
args:
- '--fix'
- '--report-unused-disable-directives'
- '--no-error-on-unmatched-pattern'
- '--exit-on-fatal-error'
- '.'
- --fix
- --report-unused-disable-directives
- --no-error-on-unmatched-pattern
- --exit-on-fatal-error
- .
inputs:
- '@globs(configs)'
- '@globs(sources)'
- '@globs(tests)'
- '@globs(typescript)'
- '/eslint.config.*'

# https://moonrepo.dev/docs/guides/examples/jest
- /eslint.config.*
test:
command: 'jest --coverage --passWithNoTests'
command: jest --coverage --passWithNoTests
inputs:
- '@globs(sources)'
- '@globs(tests)'
- '.babelrc.*'
- 'babel.config.*'
- 'jest.config.*'
- '/babel.config.*'

# https://moonrepo.dev/docs/guides/examples/typescript
- .babelrc.*
- babel.config.*
- jest.config.*
- /babel.config.*
typecheck:
command: 'tsc --build --pretty'
command: tsc --build --pretty
inputs:
- '@globs(sources)'
- '@globs(tests)'
Expand Down
35 changes: 0 additions & 35 deletions .moon/toolchain.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .moon/toolchains.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
$schema: ./cache/schemas/toolchains.json

node:
version: '22.17.0'

yarn:
version: '4.9.2'

javascript:
packageManager: yarn
dedupeOnLockfileChange: true
dependencyVersionFormat: workspace-caret
syncProjectWorkspaceDependencies: true
inferTasksFromScripts: false

typescript:
createMissingConfig: true
routeOutDirToCache: true
syncProjectReferences: true
syncProjectReferencesToPaths: false
27 changes: 6 additions & 21 deletions .moon/workspace.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
$schema: 'https://moonrepo.dev/schemas/workspace.json'
$schema: ./cache/schemas/workspace.json

projects:
- 'packages/*'
- packages/*

experiments:
actionPipelineV2: true
gitV2: true
fasterGlobWalk: true

# https://moonrepo.dev/docs/config/workspace#runner
runner:
# Cache these targets in the cloud
archivableTargets:
- ':format'
- ':lint'
- ':test'
- ':typecheck'
# Colors are nice...
inheritColorsForPipedTasks: true
# Always log the command so consumers understand what's happening.
pipeline:
logRunningCommand: true
inheritColorsForPipedTasks: true

# https://moonrepo.dev/docs/config/workspace#vcs
vcs:
manager: 'git'
defaultBranch: 'master'
client: git
defaultBranch: master
2 changes: 1 addition & 1 deletion .prototools
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
moon = "1.40.0"
moon = "2.0.0-alpha.2"
node = "22.17.0"
yarn = "4.9.2"
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"packages/*"
],
"devDependencies": {
"@babel/core": "^7.28.0",
"@moonrepo/cli": "^1.40.0",
"@babel/core": "^7.28.6",
"@moonrepo/cli": "^2.0.0-alpha.2",
"@moonrepo/dev": "workspace:*",
"eslint": "^9.32.0",
"jest": "^30.0.5",
"jest-circus": "^30.0.5",
"lerna": "^8.2.3",
"eslint": "^9.39.2",
"jest": "^30.2.0",
"jest-circus": "^30.2.0",
"lerna": "^9.0.3",
"packemon": "^4.1.2",
"prettier": "^3.6.2",
"typescript": "^5.8.3"
"prettier": "^3.8.0",
"typescript": "^5.9.3"
},
"packageManager": "yarn@4.9.2"
}
2 changes: 1 addition & 1 deletion packages/babel-preset/moon.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
layer: 'library'
layer: library
12 changes: 6 additions & 6 deletions packages/babel-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@
},
"dependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.28.0",
"@babel/plugin-proposal-decorators": "^7.28.6",
"@babel/plugin-proposal-export-default-from": "^7.27.1",
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/preset-env": "^7.28.0",
"@babel/preset-react": "^7.27.1",
"@babel/preset-typescript": "^7.27.1",
"@babel/preset-env": "^7.28.6",
"@babel/preset-react": "^7.28.5",
"@babel/preset-typescript": "^7.28.5",
"babel-plugin-conditional-invariant": "^4.0.1",
"babel-plugin-env-constants": "^4.0.1",
"babel-preset-solid": "^1.9.6"
"babel-preset-solid": "^1.9.10"
},
"devDependencies": {
"@babel/core": "^7.28.0"
"@babel/core": "^7.28.6"
},
"funding": {
"type": "ko-fi",
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/moon.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
layer: 'library'
layer: library
5 changes: 2 additions & 3 deletions packages/eslint-config/moon.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
layer: 'library'

layer: library
dependsOn:
- 'dev'
- dev
14 changes: 7 additions & 7 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,28 @@
"eslint": "^9.0.0"
},
"dependencies": {
"@eslint/compat": "^1.3.1",
"@eslint/compat": "^2.0.1",
"@moonrepo/dev": "^3.1.1",
"@typescript-eslint/eslint-plugin": "^8.38.0",
"@typescript-eslint/parser": "^8.38.0",
"@typescript-eslint/eslint-plugin": "^8.53.0",
"@typescript-eslint/parser": "^8.53.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-compat": "^6.0.2",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jest": "^29.0.1",
"eslint-plugin-jest": "^29.12.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-n": "^17.21.0",
"eslint-plugin-n": "^17.23.2",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-perf": "^3.3.3",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-solid": "^0.14.5",
"eslint-plugin-unicorn": "^56.0.1",
"globals": "^16.3.0"
"globals": "^17.0.0"
},
"devDependencies": {
"eslint": "^9.32.0"
"eslint": "^9.39.2"
},
"funding": {
"type": "ko-fi",
Expand Down
1 change: 0 additions & 1 deletion packages/eslint-config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const config: eslint.Linter.Config = {
__PROD__: 'readonly',
__TEST__: 'readonly',
},
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
parser: tsParser,
parserOptions: {
sourceType: 'module',
Expand Down
6 changes: 3 additions & 3 deletions packages/jest-preset/moon.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
layer: 'library'
layer: library

dependsOn:
- 'dev'
- dev

tasks:
test:
args:
- '--no-coverage'
- --no-coverage
Loading