UNPKG

387 BJavaScriptView Raw
1const path = require('path');
2const getCwd = require('./get-cwd');
3
4/**
5 * 0.6 之前版本: 获取打包配置文件路径 (默认: /koot.build.js)
6 * @deprecated
7 * @returns {String}
8 */
9module.exports = () =>
10 typeof process.env.KOOT_BUILD_CONFIG_PATHNAME === 'string'
11 ? process.env.KOOT_BUILD_CONFIG_PATHNAME
12 : path.resolve(getCwd(), 'koot.build.js');