Skip to content

Commit

Permalink
build: Bundle env-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Feb 10, 2025
1 parent 4e72ab3 commit a901a31
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
21 changes: 20 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@rollup/plugin-replace": "6.0.2",
"@tsconfig/node14": "14.1.2",
"@types/jest": "29.5.14",
"env-ci": "11.1.0",
"eslint": "9.20.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-plugin-import": "2.31.0",
Expand All @@ -75,7 +76,6 @@
"cosmiconfig": "9.0.0",
"debug": "4.4.0",
"dotenv": "16.4.7",
"env-ci": "11.1.0",
"fs-extra": "11.3.0",
"isomorphic-fetch": "3.0.0",
"lodash": "4.17.21",
Expand Down
5 changes: 3 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default defineConfig([
preserveModules: true,
preserveModulesRoot: CONTEXT,
},
external: /node_modules/,
external: [/node_modules\/(?!(env-ci))/],
plugins: [
replacePlugin({
preventAssignment: true,
Expand All @@ -37,7 +37,8 @@ export default defineConfig([
nodeResolvePlugin(),
babelPlugin({
babelHelpers: 'bundled',
exclude: 'node_modules/**',
include: [/node_modules\/env-ci/],
exclude: [/node_modules/],
}),
],
},
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @typedef {import('../').EnvVars} EnvVars
*/
import childProcess from 'child_process';
import envCI from 'env-ci';
import envCI from 'env-ci'; // eslint-disable-line
import getDebug from 'debug';
import get from 'lodash/get';
import set from 'lodash/set';
Expand Down

0 comments on commit a901a31

Please sign in to comment.