diff --git "a/\346\211\213\345\206\231\345\217\257\346\217\222\346\213\224\345\211\215\347\253\257\346\241\206\346\236\266\345\260\217\345\206\214/1-2.\347\211\233\345\210\200\345\260\217\350\257\225-\345\256\236\347\216\260\345\271\266\345\217\221\345\270\203\344\270\200\344\270\252CLI.md" "b/\346\211\213\345\206\231\345\217\257\346\217\222\346\213\224\345\211\215\347\253\257\346\241\206\346\236\266\345\260\217\345\206\214/1-2.\347\211\233\345\210\200\345\260\217\350\257\225-\345\256\236\347\216\260\345\271\266\345\217\221\345\270\203\344\270\200\344\270\252CLI.md" index c90f8a2..fd3c096 100644 --- "a/\346\211\213\345\206\231\345\217\257\346\217\222\346\213\224\345\211\215\347\253\257\346\241\206\346\236\266\345\260\217\345\206\214/1-2.\347\211\233\345\210\200\345\260\217\350\257\225-\345\256\236\347\216\260\345\271\266\345\217\221\345\270\203\344\270\200\344\270\252CLI.md" +++ "b/\346\211\213\345\206\231\345\217\257\346\217\222\346\213\224\345\211\215\347\253\257\346\241\206\346\236\266\345\260\217\345\206\214/1-2.\347\211\233\345\210\200\345\260\217\350\257\225-\345\256\236\347\216\260\345\271\266\345\217\221\345\270\203\344\270\200\344\270\252CLI.md" @@ -89,20 +89,21 @@ console.log(yang) ```json { - "compilerOptions": { - "target": "es2016", // 编译产物 - "module": "commonjs", - "moduleResolution": "node", // 模块声明 - "baseUrl": "./", - "declaration": true, // 生成 d.ts 文件 - "sourceMap": true, // 开启 sourcemap 方便打断点调试源文件 - "outDir": "dist", // 编译后输出文件夹 - "declarationDir": "dist", - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "strict": true, - "skipLibCheck": true - } + "compilerOptions": {//编译选项 + + "target": "es2016", //编译产物 + "module": "commonjs", //模块化标准 + "moduleResolution":"node",//模块声明 + "baseUrl": "./",//设置从中解析非相对模块名称的基目录 + "declaration": true,//生成 d.ts文件 + "sourceMap": true,//开启sourceMap,方便打断点调试源文件 + "outDir": "dist",//打包后输出的文件夹 + "declarationDir": "dist",//生成的 d.ts文件存放目录 + "esModuleInterop": true, //esModule兼容 CommonJS + "forceConsistentCasingInFileNames": true, //强制文件名大小写一致 + "strict": true, //开启严格模式 + "skipLibCheck": true //跳过库检查 + } } ```