Skip to content

Commit ad85503

Browse files
committed
build(yargs): properly handle the helpers import
1 parent ecd6580 commit ad85503

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.eslintrc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ extends:
88
parserOptions:
99
ecmaVersion: 2022
1010

11+
overrides:
12+
- files: "src/index.js"
13+
rules:
14+
"import/no-unresolved":
15+
- error
16+
- ignore:
17+
- "yargs/helpers"
18+
1119
rules:
1220
import/extensions:
1321
- error

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ export default {
1212
executable(),
1313
nodeResolve({mainFields: ['module']})
1414
],
15-
external: ['source-map-support/register'],
15+
external: ['source-map-support/register', 'yargs/helpers'],
1616
output: [{file: 'bin/form8ion-utils.js', format: 'esm', sourcemap: true, banner: '#!/usr/bin/env node'}]
1717
};

0 commit comments

Comments
 (0)