Skip to content

Commit

Permalink
breaking: Drop Node v16 support. Require v18.12+.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Mar 1, 2024
1 parent 6017518 commit d6fe159
Show file tree
Hide file tree
Showing 22 changed files with 121 additions and 1,191 deletions.
8 changes: 6 additions & 2 deletions .moon/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ tasks:
shell: true

build:
command: 'packemon build --addEngines --quiet'
command:
'yarn dlx --package packemon@4.0.0-alpha.2 --package typescript --quiet packemon build
--addEngines --quiet'
deps:
- '^:build'
inputs:
Expand All @@ -25,7 +27,9 @@ tasks:
runInCI: false

pack:
command: 'packemon pack --addEngines --addExports --declaration'
command:
'yarn dlx --package packemon@4.0.0-alpha.2 --package typescript --quiet packemon pack
--addEngines --addExports --declaration'
deps:
# - 'typecheck'
- '^:pack'
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"moon": "$(yarn bin moon) --color",
"release": "yarn run moon run :pack && lerna-release",
"version": "yarn install && git add yarn.lock",
"packemon": "yarn dlx --package packemon@3.3.1 --package typescript --quiet packemon"
"packemon": "yarn dlx --package packemon@4.0.0-alpha.2 --package typescript --quiet packemon"
},
"engines": {
"node": "20.11.0"
Expand All @@ -27,7 +27,6 @@
"eslint-config-moon": "^2.1.2",
"fs-extra": "^11.2.0",
"lerna": "^8.1.2",
"packemon": "^3.3.1",
"prettier": "^3.2.5",
"prettier-config-moon": "^1.1.2",
"time-require": "^0.1.2",
Expand Down
8 changes: 3 additions & 5 deletions packages/args/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"src/**/*"
],
"engines": {
"node": ">=16.12.0"
"node": ">=18.12.0"
},
"repository": {
"type": "git",
Expand All @@ -45,10 +45,8 @@
"exports": {
"./package.json": "./package.json",
".": {
"node": {
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
}
}
20 changes: 7 additions & 13 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"src/**/*"
],
"engines": {
"node": ">=16.12.0"
"node": ">=18.12.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -73,22 +73,16 @@
"exports": {
"./package.json": "./package.json",
"./react": {
"node": {
"types": "./mjs/react.d.ts",
"import": "./mjs/react.mjs"
}
"types": "./mjs/react.d.ts",
"import": "./mjs/react.mjs"
},
"./test": {
"node": {
"types": "./mjs/test.d.ts",
"import": "./mjs/test.mjs"
}
"types": "./mjs/test.d.ts",
"import": "./mjs/test.mjs"
},
".": {
"node": {
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
}
}
20 changes: 7 additions & 13 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"src/**/*"
],
"engines": {
"node": ">=16.12.0"
"node": ">=18.12.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -67,22 +67,16 @@
"exports": {
"./package.json": "./package.json",
"./optimal": {
"node": {
"types": "./mjs/optimal.d.ts",
"import": "./mjs/optimal.mjs"
}
"types": "./mjs/optimal.d.ts",
"import": "./mjs/optimal.mjs"
},
"./test": {
"node": {
"types": "./mjs/test.d.ts",
"import": "./mjs/test.mjs"
}
"types": "./mjs/test.d.ts",
"import": "./mjs/test.mjs"
},
".": {
"node": {
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
}
}
8 changes: 3 additions & 5 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"src/**/*"
],
"engines": {
"node": ">=16.12.0"
"node": ">=18.12.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -52,10 +52,8 @@
"exports": {
"./package.json": "./package.json",
".": {
"node": {
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
}
}
14 changes: 5 additions & 9 deletions packages/debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"src/**/*"
],
"engines": {
"node": ">=16.12.0"
"node": ">=18.12.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -59,16 +59,12 @@
"exports": {
"./package.json": "./package.json",
"./test": {
"node": {
"types": "./mjs/test.d.ts",
"import": "./mjs/test.mjs"
}
"types": "./mjs/test.d.ts",
"import": "./mjs/test.mjs"
},
".": {
"node": {
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
}
}
11 changes: 5 additions & 6 deletions packages/decorators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"src/**/*"
],
"engines": {
"node": ">=16.12.0"
"node": ">=18.12.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -48,14 +48,13 @@
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"types": "./esm/index.d.ts",
"module": "./esm/index.js",
"import": "./esm/index.js"
},
"node": {
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
},
"default": {
"types": "./esm/index.d.ts",
"import": "./esm/index.js"
}
}
}
Expand Down
11 changes: 5 additions & 6 deletions packages/event/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"src/**/*"
],
"engines": {
"node": ">=16.12.0"
"node": ">=18.12.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -53,14 +53,13 @@
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"types": "./esm/index.d.ts",
"module": "./esm/index.js",
"import": "./esm/index.js"
},
"node": {
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
},
"default": {
"types": "./esm/index.d.ts",
"import": "./esm/index.js"
}
}
}
Expand Down
11 changes: 5 additions & 6 deletions packages/internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"src/**/*"
],
"engines": {
"node": ">=16.12.0"
"node": ">=18.12.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -54,14 +54,13 @@
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"types": "./esm/browser.d.ts",
"module": "./esm/index.js",
"import": "./esm/index.js"
},
"node": {
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
},
"default": {
"types": "./esm/browser.d.ts",
"import": "./esm/index.js"
}
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/internal/src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from './color';
export * from './createInternalDebugger';
export * from './createScopedError';
export * from './env';
export * from './interopDefault';
1 change: 0 additions & 1 deletion packages/internal/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@

export * from './browser';
export * from './importAbsoluteModule';
export * from './interopDefault';
14 changes: 5 additions & 9 deletions packages/log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"src/**/*"
],
"engines": {
"node": ">=16.12.0"
"node": ">=18.12.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -56,16 +56,12 @@
"exports": {
"./package.json": "./package.json",
"./test": {
"node": {
"types": "./mjs/test.d.ts",
"import": "./mjs/test.mjs"
}
"types": "./mjs/test.d.ts",
"import": "./mjs/test.mjs"
},
".": {
"node": {
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
}
}
22 changes: 8 additions & 14 deletions packages/module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"src/**/*"
],
"engines": {
"node": ">=16.12.0"
"node": ">=18.12.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -62,23 +62,17 @@
"exports": {
"./package.json": "./package.json",
"./hook-typescript": {
"node": {
"types": "./mjs/hooks/typescript.d.ts",
"import": "./mjs/hook-typescript.mjs"
}
"types": "./mjs/hooks/typescript.d.ts",
"import": "./mjs/hook-typescript.mjs"
},
"./register": {
"node": {
"types": "./mjs/hooks/index.d.ts",
"import": "./mjs/register.mjs"
}
"types": "./mjs/hooks/index.d.ts",
"import": "./mjs/register.mjs"
},
".": {
"node": {
"types": "./cjs/index.d.ts",
"import": "./cjs/index-wrapper.mjs",
"require": "./cjs/index.cjs"
}
"types": "./cjs/index.d.ts",
"import": "./cjs/index-wrapper.mjs",
"default": "./cjs/index.cjs"
}
}
}
8 changes: 3 additions & 5 deletions packages/pipeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"src/**/*"
],
"engines": {
"node": ">=16.12.0"
"node": ">=18.12.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -55,10 +55,8 @@
"exports": {
"./package.json": "./package.json",
".": {
"node": {
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
}
}
8 changes: 3 additions & 5 deletions packages/plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"src/**/*"
],
"engines": {
"node": ">=16.12.0"
"node": ">=18.12.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -50,10 +50,8 @@
"exports": {
"./package.json": "./package.json",
".": {
"node": {
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
"types": "./mjs/index.d.ts",
"import": "./mjs/index.mjs"
}
}
}
Loading

0 comments on commit d6fe159

Please sign in to comment.