diff --git a/package.json b/package.json index 01e47fc9f5..363fcfdd76 100644 --- a/package.json +++ b/package.json @@ -223,6 +223,7 @@ "cross-fetch": "^4.0.0", "crypto": "^1.0.1", "dekko": "^0.2.1", + "dotenv": "^16.4.5", "dumi": "~2.4.0", "dumi-plugin-color-chunk": "^1.1.1", "esbuild-loader": "^4.1.0", diff --git a/scripts/pre-publish.ts b/scripts/pre-publish.ts index 60cc001f03..95c047c20e 100644 --- a/scripts/pre-publish.ts +++ b/scripts/pre-publish.ts @@ -6,9 +6,11 @@ import AdmZip from 'adm-zip'; import axios from 'axios'; import chalk from 'chalk'; import Spinnies from 'spinnies'; - +import dotnev from 'dotenv'; import checkRepo from './check-repo'; +dotnev.config({ override: true }); + const { Notification: Notifier } = require('node-notifier'); const simpleGit = require('simple-git');