Skip to content

Commit

Permalink
fix: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Oct 31, 2023
1 parent 110c090 commit 5739676
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 239 deletions.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@
"@rollup/plugin-commonjs": "25.0.7",
"@rollup/plugin-json": "6.0.1",
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-replace": "5.0.4",
"@rollup/plugin-replace": "5.0.5",
"@rollup/plugin-terser": "0.4.4",
"@rollup/pluginutils": "5.0.5",
"@willbooster/shared-lib-node": "4.1.1",
"babel-plugin-polyfill-corejs3": "0.8.5",
"@willbooster/shared-lib-node": "5.0.0",
"babel-plugin-polyfill-corejs3": "0.8.6",
"babel-plugin-transform-remove-console": "6.9.4",
"chalk": "5.3.0",
"core-js": "3.33.1",
"core-js-pure": "3.33.1",
"core-js": "3.33.2",
"core-js-pure": "3.33.2",
"date-time": "4.0.0",
"pretty-ms": "8.0.0",
"rollup": "4.1.4",
"rollup": "4.2.0",
"rollup-plugin-analyzer": "4.0.0",
"rollup-plugin-keep-import": "1.0.2",
"rollup-plugin-node-externals": "6.1.2",
Expand All @@ -72,31 +72,31 @@
"@types/babel__plugin-transform-runtime": "7.9.4",
"@types/babel__preset-env": "7.9.4",
"@types/eslint": "8.44.6",
"@types/node": "18.18.6",
"@types/node": "20.8.10",
"@types/signal-exit": "3.0.3",
"@types/yargs": "17.0.29",
"@typescript-eslint/eslint-plugin": "6.9.0",
"@typescript-eslint/parser": "6.9.0",
"@willbooster/babel-configs": "1.3.0",
"@typescript-eslint/eslint-plugin": "6.9.1",
"@typescript-eslint/parser": "6.9.1",
"@willbooster/babel-configs": "1.3.1",
"@willbooster/eslint-config-ts": "10.5.1",
"@willbooster/prettier-config": "9.1.2",
"@willbooster/wb": "5.1.2",
"@willbooster/wb": "6.0.0",
"conventional-changelog-conventionalcommits": "7.0.2",
"eslint": "8.52.0",
"eslint-config-prettier": "9.0.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-import": "2.29.0",
"eslint-plugin-sort-class-members": "1.19.0",
"eslint-plugin-sort-destructure-keys": "1.5.0",
"eslint-plugin-unicorn": "48.0.1",
"eslint-plugin-unicorn": "49.0.0",
"husky": "8.0.3",
"lint-staged": "15.0.2",
"micromatch": "4.0.5",
"pinst": "3.0.0",
"prettier": "3.0.3",
"semantic-release": "22.0.5",
"semantic-release": "22.0.6",
"sort-package-json": "2.6.0",
"type-fest": "4.5.0",
"type-fest": "4.6.0",
"vitest": "0.34.6"
},
"packageManager": "[email protected]",
Expand Down
8 changes: 4 additions & 4 deletions src/env.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { loadEnvironmentVariables } from '@willbooster/shared-lib-node';
import { readAndApplyEnvironmentVariables } from '@willbooster/shared-lib-node';

import type { builder } from './commands/build/builder.js';
import type { sharedOptionsBuilder } from './sharedOptionsBuilder.js';
import type { ArgumentsType } from './types.js';

let envVars: Record<string, string> | undefined;
let envVars: Record<string, string | undefined> | undefined;

/**
* This function loads environment variables from `.env` files.
* */
export function loadEnvironmentVariablesWithCache(
argv: ArgumentsType<typeof sharedOptionsBuilder>,
cwd: string
): Record<string, string> {
): Record<string, string | undefined> {
if (!envVars) {
envVars = loadEnvironmentVariables(argv, cwd);
envVars = readAndApplyEnvironmentVariables(argv, cwd);
if (argv.verbose) {
console.info('Loaded env vars:', Object.keys(envVars));
}
Expand Down
5 changes: 0 additions & 5 deletions src/sharedOptionsBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ import { yargsOptionsBuilderForEnv } from '@willbooster/shared-lib-node';

export const sharedOptionsBuilder = {
...yargsOptionsBuilderForEnv,
verbose: {
description: 'Whether or not verbose mode is enabled.',
type: 'boolean',
alias: 'v',
},
silent: {
description: 'Whether watch mode is enabled or not',
type: 'boolean',
Expand Down
Loading

0 comments on commit 5739676

Please sign in to comment.