refactor(jsdoc): remove env global

BREAKING CHANGE: no more `env` global
This commit is contained in:
Jeff Williams 2021-09-27 16:26:17 -07:00
parent afb01782df
commit d48e0151e2

View File

@ -32,17 +32,6 @@
env.args = process.argv.slice(2);
})();
/**
* Data about the environment in which JSDoc is running, including the configuration settings that
* were used to run JSDoc.
*
* @deprecated As of JSDoc 3.4.0. Use `require('jsdoc/env')` to access the `env` object. The global
* `env` object will be removed in a future release.
* @namespace
* @name env
*/
global.env = (() => require('./lib/jsdoc/env'))();
(async () => {
const cli = require('./cli');