Skip to content

Commit f95b29f

Browse files
committed
deps(moon): Update to v0.23.
1 parent 814ffa2 commit f95b29f

12 files changed

Lines changed: 126 additions & 139 deletions

File tree

.moon/oss/toolchain.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.moon/oss/workspace.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.moon/project.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.moon/tasks/node-library.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
$schema: 'https://moonrepo.dev/schemas/tasks.json'
2+
3+
tasks:
4+
# https://moonrepo.dev/docs/guides/examples/packemon
5+
build:
6+
command: 'packemon'
7+
args:
8+
- 'build'
9+
- '--addEngines'
10+
- '--addExports'
11+
- '--declaration'
12+
- '--declarationConfig'
13+
- 'tsconfig.build.json'
14+
inputs:
15+
- '@globs(sources)'
16+
- '@globs(typescript)'
17+
- 'package.json'
18+
outputs:
19+
- 'lib'
20+
- 'dts'
21+
env:
22+
NODE_ENV: 'production'
Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
$schema: 'https://moonrepo.dev/schemas/global-project.json'
1+
$schema: 'https://moonrepo.dev/schemas/tasks.json'
2+
3+
# Instead of fine tuning each project, always build dependencies and rely on the cache
4+
implicitDeps:
5+
- '^:build'
6+
7+
implicitInputs:
8+
- 'package.json'
29

310
fileGroups:
411
configs:
@@ -22,26 +29,6 @@ fileGroups:
2229
- '/tsconfig.*.json'
2330

2431
tasks:
25-
# https://moonrepo.dev/docs/guides/examples/packemon
26-
build:
27-
command: 'packemon'
28-
args:
29-
- 'build'
30-
- '--addEngines'
31-
- '--addExports'
32-
- '--declaration'
33-
- '--declarationConfig'
34-
- 'tsconfig.build.json'
35-
inputs:
36-
- '@globs(sources)'
37-
- '@globs(typescript)'
38-
- 'package.json'
39-
outputs:
40-
- 'lib'
41-
- 'dts'
42-
env:
43-
NODE_ENV: 'production'
44-
4532
# https://moonrepo.dev/docs/guides/examples/prettier
4633
format:
4734
command: 'prettier'

.moon/toolchain.yml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
11
$schema: 'https://moonrepo.dev/schemas/toolchain.json'
22

3-
extends: './oss/toolchain.yml'
3+
# https://moonrepo.dev/docs/config/workspace#node
4+
node:
5+
version: '18.12.0'
6+
packageManager: 'yarn'
7+
yarn:
8+
version: '3.3.0'
9+
plugins:
10+
- 'interactive-tools'
11+
- 'version'
12+
- 'workspace-tools'
13+
14+
# Do not add an engines constraint as its abrasive for open source.
15+
addEnginesConstraint: false
16+
17+
# Always dedupe lockfile to keep it healthy.
18+
dedupeOnLockfileChange: true
19+
20+
# Use workspace ranges when syncing projects.
21+
dependencyVersionFormat: 'workspace-caret'
22+
syncProjectWorkspaceDependencies: true
23+
24+
# Allow contributors to easily use the correct version.
25+
syncVersionManagerConfig: 'nvm'
26+
27+
# Do not infer functionality from `package.json`, as we want to encourage
28+
# consumers to embrace moon.
29+
aliasPackageNames: null
30+
inferTasksFromScripts: false
31+
32+
# https://moonrepo.dev/docs/config/workspace#typescript
33+
typescript:
34+
# Always create a missing config so we can catch misconfigured projects.
35+
createMissingConfig: true
36+
37+
# Always route project reference declarations outside of the project.
38+
routeOutDirToCache: true
39+
40+
# Always sync project references to keep it healthy.
41+
syncProjectReferences: true
42+
43+
# Do not add path aliases, as this may be abrasive. Consumers can opt-in.
44+
syncProjectReferencesToPaths: false

.moon/workspace.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
$schema: 'https://moonrepo.dev/schemas/workspace.json'
22

3-
extends: './oss/workspace.yml'
3+
projects:
4+
- 'packages/*'
45

6+
# https://moonrepo.dev/docs/config/workspace#runner
57
runner:
6-
implicitInputs:
7-
- 'package.json'
8-
- '/.moon/oss/project.yml'
9-
- '/.moon/oss/toolchain.yml'
10-
- '/.moon/oss/workspace.yml'
11-
- '/.moon/project.yml'
12-
- '/.moon/toolchain.yml'
13-
- '/.moon/workspace.yml'
8+
# Colors are nice...
9+
inheritColorsForPipedTasks: true
10+
# Always log the command so consumers understand what's happening.
11+
logRunningCommand: true
1412

15-
projects:
16-
- 'packages/*'
13+
# https://moonrepo.dev/docs/config/workspace#vcs
14+
vcs:
15+
manager: 'git'
16+
defaultBranch: 'master'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"devDependencies": {
1515
"@babel/core": "^7.20.5",
16-
"@moonrepo/cli": "^0.22.0",
16+
"@moonrepo/cli": "^0.23.1",
1717
"@moonrepo/dev": "workspace:*",
1818
"eslint": "^8.32.0",
1919
"jest": "^29.3.1",

packages/babel-preset/moon.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
type: 'library'

packages/dev/moon.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
type: 'library'

0 commit comments

Comments
 (0)