我有一个类型记录项目,我想发布它,我在一个名为build的目录中生成所有的js文件,在一个名为声明的目录中生成所有的声明文件,我不想在我发布的版本中包含.ts文件--我想知道我如何不使用gulp就可以做到这一点?
这是我的tsconfig.json
{
"compilerOptions": {
"target": "es6",
"lib": ["es6", "dom"],
"types": ["reflect-metadata"],
"module": "commonjs",
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"outDir": "build",
"declarationDir": "declaration"
},
"exclude": [
"node_modules"
]
}我的package.json:
{
"name": "data-layer",
"version": "1.1.4",
"description": "data access layer",
"main": "./build/index.js",
"types": "./declaration/index.d.ts",
...发布于 2016-12-04 20:03:34
https://stackoverflow.com/questions/40962867
复制相似问题