0.2.24 • Published 2 years ago

commit-cz-fix v0.2.24

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

构建发布注意: TODO: 提交修改后的chanlog文件和一些修正版本 安装切换到yarn源在安装 会快一点

fix: 1. 修改了tsdx的constants.js文件,修改路径加载 2. 在tsdx目录下添加了 tsdx.config.js 文件 修复打包后的文件没有添加 node环境的头 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("./utils"); module.exports = { paths: { appPackageJson: utils_1.resolveApp('package.json'), tsconfigJson: utils_1.resolveApp('tsconfig.json'), testsSetup: utils_1.resolveApp('test/setupTests.ts'), appRoot: utils_1.resolveApp('.'), appSrc: utils_1.resolveApp('src'), appErrorsJson: utils_1.resolveApp('errors/codes.json'), appErrors: utils_1.resolveApp('errors'), appDist: utils_1.resolveApp('bin'), // 修改打包路径 appConfig: utils_1.resolveApp('node_modules/tsdx/dist/constants.js'), //添加插件的位置 jestConfig: utils_1.resolveApp('jest.config.js'), progressEstimatorCache: utils_1.resolveApp('node_modules/.cache/.progress-estimator'), }, rollup(config, options) { config.plugins.push( { name: 'write-head', generateBundle(options, bundle) { let file = bundle[${options.name}.esm.js] file.code = '#!/usr/bin/env node\n' + file.code } } ); return config; } }