腾讯第一个百万规模管控系统-Tencent System Controller(TSC)诞生了,
首先打包来说,我们使用 tsc 将其输出到 cli/bin 目录下,之后发布就直接上传 bin 目录了,你也可以加 README.md 文件等等 当你自己的 cli 做好以后,就可以发布至 npmjs 远程仓库,在你注册账号后,可以在个人电脑终端使用 npm login 登录,然后对包进行 npm publish 即可 需要注意上传的文件,在 package.json 里...
pnpm tsc --init pnpm的使用基本和npm一致。这里的用法就相当于npm中的npx: npx tsc --init 意思是,去node_modules下的.bin目录中找到tsc命令,并执行它。 执行完该命令,会在项目根目录生成一个tsconfig.json文件,进行一些配置: {"compilerOptions":{"outDir":"dist",// 输出的目录"sourceMap":true,// 开...
"echarts-liquidfill":"^2.0.6","element-ui":"^2.13.2","file-saver":"^2.0.5","highlight.js":"^9.0.0","js-base64":"^3.7.2","lodash":"^4.17.19","marked":"^1.2.7","moment":"^2.24.0","qs":"^6.10.2","save":"^2.4.0","sortablejs":"^1.13.0","v-viewer"...
同时目前基本上 pnpm 下大部分正在维护的子包使用 typescipt 在开发,笔者之前还给一些库补上了tsc --watch命令: 因此如果想通过一种即时编译的方式去调试 pnpm 源码的话,可以直接到对应的子包下面将对应子包的 start 命令给 run 起来。然后针对不同的子包去进行一个调试的工作。以下为笔者的一个调试流程,可以提...
"^0.21.0",32"vue-tsc": "^0.39.4"33},34"dependencies": {35"@ant-design/icons-vue": "^6.1.0",36"ant-design-vue": "^3.2.10",37"axios": "^0.27.2",38"dayjs": "^1.11.4",39"pinia": "^2.0.17",40"rxjs": "^7.5.6",41"vue": "^3.2.37",42"vue-router": "^4.1.3"...
"scripts":{"vscode:prepublish":"pnpm run compile","compile":"tsc -p ./","watch":"tsc -watch -p ./","pretest":"pnpm run compile && pnpm run lint","lint":"eslint src --ext ts","test":"vscode-test","package":"pnpm vsce package --no-dependencies","publish":"pnpm vsce publi...
Contribution I'd be willing to implement this feature (contributing guide) Describe the user story I often register npm-scripts in package.json that run some static analysis. For example, lint:tsc to run tsc, lint:eslint to run eslint an...
Unable to build Scope: 4 of 5 workspace projects packages/misskey-js build$ tsc │ node:internal/modules/cjs/loader:1078 │ throw err; │ ^ │ Error: Cannot find module ' /path/to/misskey/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/bin ...
{"name":"my-first","private":true,"version":"0.0.0","scripts":{"dev":"vite","build":"vue-tsc --noEmit && vite build","preview":"vite preview","lint:eslint":"eslint --fix --ext .js,.ts,.vue,.tsx ./src","preinstall":"npx only-allow pnpm","postinstall":"husky install"...