This commit is contained in:
Zengtudor 2024-08-12 17:38:51 +08:00
parent 374de7ad2c
commit 6ee8698f97
2 changed files with 8 additions and 25 deletions

View File

@ -1,9 +1,10 @@
{
"name": "cnmake",
"version": "0.0.2",
"version": "0.0.6",
"description": "一个用Nodejs作为框架编译C/C++的代码库,未来可能会支持更多语言",
"main": "./src/index.ts",
"main": "./dist/index.js",
"type": "module",
"types": "./src/index.ts",
"bin": {
"cnmake": "./dist/index.js"
},

View File

@ -5,30 +5,12 @@ import { existsSync } from "fs";
import printErrorOrDebug from "./Tools/PrintErrorOrDebug.js";
import { setNmakePath } from "./Tools/NmakePath.js";
import CppBuilder from "./Builder/CppBuilder.js";
import CppProject from "./Project/CppProject.js";
export * from "./Builder/Builder.js"
export * from "./Builder/CppBuilder.js"
export * from "./Compiler/Compiler.js"
export * from "./Compiler/GppCompiler.js"
export * from "./Project/CppProject.js"
export * from "./Project/Project.js"
export * from "./Tools/AddProject.js"
export * from "./Tools/BuildDir.js"
export * from "./Tools/DebugPrint.js"
export * from "./Tools/DefaultCompiler.js"
export * from "./Tools/ExecAsync.js"
export * from "./Tools/GetExecutableExtension.js"
export * from "./Tools/GetExecutablePathsFromEnv.js"
export * from "./Tools/GetPathsFromEnv.js"
export * from "./Tools/GlobalNmake.js"
export * from "./Tools/NmakeDir.js"
export * from "./Tools/NmakePath.js"
export * from "./Tools/PrintErrorOrDebug.js"
export * from "./Tools/Projects.js"
export * from "./Tools/ProtectPath.js"
export * from "./Tools/SetGetDefaultCompiler.js"
export * from "./Tools/SourceFilesToString.js"
export * from "./Tools/TryGetCompilerVersion.js"
export{
addProject,
CppProject,
}
// const argv = require('minimist')(process.argv.slice(2))
import minimist from "minimist";