Skip to content

Commit

Permalink
build: upgrading to moorepo 0.23 (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
bclark-p44 authored Feb 2, 2023
1 parent 7913371 commit 7f92cf7
Show file tree
Hide file tree
Showing 11 changed files with 143 additions and 155 deletions.
2 changes: 2 additions & 0 deletions .changeset/lemon-jeans-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
coverage/
build/
dts/
esm/
lib/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: yarn setup

- name: Run checks
run: yarn moon ci
run: yarn moon ci --concurrency 4

- name: Report results
uses: moonrepo/run-report-action@v1
Expand Down
20 changes: 20 additions & 0 deletions .moon/tasks/node-library.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
$schema: 'https://moonrepo.dev/schemas/tasks.json'

tasks:
buildPackage:
command: 'packemon'
args:
- 'build'
- '--addEngines'
- '--addExports'
- '--declaration'
- '--declarationConfig'
- 'tsconfig.build.json'
inputs:
- '@globs(sources)'
- '@globs(typescript)'
- 'package.json'
outputs:
- 'dts'
env:
NODE_ENV: 'production'
26 changes: 7 additions & 19 deletions .moon/project.yml → .moon/tasks/node.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
$schema: 'https://moonrepo.dev/schemas/global-project.json'
$schema: 'https://moonrepo.dev/schemas/tasks.json'

implicitDeps:
- '^:build'

implicitInputs:
- 'package.json'

fileGroups:
configs:
Expand Down Expand Up @@ -29,24 +35,6 @@ fileGroups:
- '/tsconfig.*.json'

tasks:
buildPackage:
command: 'packemon'
args:
- 'build'
- '--addEngines'
- '--addExports'
- '--declaration'
- '--declarationConfig'
- 'tsconfig.build.json'
inputs:
- '@globs(sources)'
- '@globs(typescript)'
- 'package.json'
outputs:
- 'dts'
env:
NODE_ENV: 'production'

format:
command: 'prettier'
args:
Expand Down
9 changes: 6 additions & 3 deletions .moon/toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ node:
packageManager: 'yarn'
yarn:
version: '3.3.1'
addEnginesConstraint: true
plugins:
- 'interactive-tools'
- 'version'
- 'workspace-tools'

addEnginesConstraint: false
dedupeOnLockfileChange: true
dependencyVersionFormat: 'version-caret'
syncProjectWorkspaceDependencies: true
syncVersionManagerConfig: 'nvm'

typescript:
createMissingConfig: true
projectConfigFileName: 'tsconfig.json'
rootConfigFileName: 'tsconfig.json'
routeOutDirToCache: true
syncProjectReferences: true
13 changes: 0 additions & 13 deletions .moon/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,6 @@ projects:

runner:
inheritColorsForPipedTasks: true
implicitDeps:
- '^:build'
implicitInputs:
- 'package.json'
- '/.moon/project.yml'
- '/.moon/toolchain.yml'
- '/.moon/workspace.yml'
- '/packages/**/package.json'
- '/packages/**/tsconfig.json'
- '/packages/**/tsconfig.options.json'
- 'tsconfig.eslint.json'
- 'tsconfig.options.json'
- '**/moon.yml'

vcs:
manager: 'git'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@changesets/cli": "^2.22.0",
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@moonrepo/cli": "^0.21.4",
"@moonrepo/cli": "^0.23.2",
"@percy/cli": "^1.16.0",
"@percy/storybook": "^4.3.4",
"@swc/core": "^1.3.29",
Expand Down
2 changes: 0 additions & 2 deletions packages/react/src/components/CalendarRange/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
export * from './CalendarRange';
// Will be fixed when this is moved into its own package
// eslint-disable-next-line import/no-unresolved
export type { RangeValue } from '@react-types/shared';
3 changes: 0 additions & 3 deletions packemon.config.js

This file was deleted.

Loading

1 comment on commit 7f92cf7

@vercel
Copy link

@vercel vercel bot commented on 7f92cf7 Feb 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.