-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Convert to ESM BREAKING CHANGE: Convert from CommonJS module to ESM * fix: Set type to be module Co-authored-by: Trygve Lie <trygve.lie@finn.no>
- Loading branch information
1 parent
4c2e4f3
commit 7824568
Showing
11 changed files
with
146 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
tap-snapshots/ | ||
coverage/ | ||
coverage | ||
tap-snapshots | ||
benchmark/ | ||
example/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
{ | ||
"root": true, | ||
"extends": ["airbnb-base", "prettier"], | ||
"overrides": [ | ||
{ | ||
"files": "__tests__/**/*", | ||
"env": { | ||
"jest": true | ||
} | ||
} | ||
], | ||
"plugins": ["prettier"], | ||
"extends": ["airbnb-base", "prettier"], | ||
"plugins": ["prettier"], | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"ecmaVersion": 11, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"strict": [0, "global"], | ||
"import/prefer-default-export": "off", | ||
"class-methods-use-this": [0], | ||
"no-param-reassign": [0] | ||
"lines-between-class-members": [0], | ||
"import/extensions": ["error", { | ||
"js": "ignorePackages" | ||
} | ||
] | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ node_modules/**/* | |
tmp/**/* | ||
.idea | ||
.idea/**/* | ||
coverage | ||
coverage | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"type": "commonjs" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export default { | ||
input: 'lib/layout.js', | ||
external: [ | ||
'@podium/schemas', | ||
'@podium/context', | ||
'@metrics/client', | ||
'@podium/client', | ||
'@podium/utils', | ||
'@podium/proxy', | ||
'@podium/utils', | ||
'abslog', | ||
'objobj', | ||
'path', | ||
'url', | ||
'fs', | ||
], | ||
output: [ | ||
{ | ||
exports: 'auto', | ||
format: 'cjs', | ||
dir: 'dist/', | ||
preserveModules: true, | ||
} | ||
], | ||
}; |
Oops, something went wrong.