Skip to content

Commit

Permalink
Merge pull request #111 from MakerXStudio/esm-cjs-dual-output-rollup-…
Browse files Browse the repository at this point in the history
…lodash-as-peer

- Use rollup based build to produce CJS and ESM output
- Take a peer dependency on lodash to avoid deprecated vulnerable sub-packages
- Reference >= Node v18 and remove fetch special handling (re-breaking change there sorry)
  • Loading branch information
cuzzlor authored Jan 30, 2024
2 parents d969921 + 8019a0c commit 0a2faaf
Show file tree
Hide file tree
Showing 22 changed files with 699 additions and 621 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# don't lint the linter config
.eslintrc.js
.eslintrc.cjs
# don't ever lint node_modules
node_modules
# don't lint build output (make sure it's set to your correct build folder name)
Expand Down
7 changes: 0 additions & 7 deletions .eslintrc

This file was deleted.

19 changes: 19 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'node', 'prettier'],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
sourceType: 'module',
},
env: {
node: true,
},
extends: ['@makerx/eslint-config'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/consistent-type-imports': 'error',
},
}
8 changes: 1 addition & 7 deletions .nsprc
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
{
"1092330": {
"active": true,
"notes": "The latest version of word-wrap was published 6 years ago",
"expiry": "2023-11-01"
}
}
{}
File renamed without changes.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.organizeImports": true
"source.fixAll.eslint": "explicit",
"source.organizeImports": "explicit"
}
}
8 changes: 0 additions & 8 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,5 @@ const config: Config.InitialOptions = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/**/*.spec.ts'],
transform: {
'<regex_match_files>': [
'ts-jest',
{
tsconfig: 'tsconfig.test.json',
},
],
},
}
export default config
Loading

0 comments on commit 0a2faaf

Please sign in to comment.