javascript - 分叉的 npm 包上没有发生安装后构建步骤
问题描述
我在这里分叉了这个repo ,非常简单。现在我指出我的项目使用我的叉子。之后我一切看起来都很好,只是文件夹丢失了。我知道需要运行以生成这些文件,并且可以手动执行此操作,但 Wix 版本以某种方式在安装包时运行构建步骤。与原版的唯一区别是我更改了一些 iOS 代码。官方 npm 包(即您可以按名称安装的包)在安装后是否会获得一些额外的爱?我错过了什么?package.json
npm install
lib/dist
npm run build
没有太多代码要展示,但我会展示 package.json 文件的脚本部分......
"scripts": {
"build": "rm -rf ./lib/dist && tsc",
"prestart": "npm run build",
"pretest-js": "npm run build",
"pretest-unit-ios": "npm run build",
"pretest-unit-android": "npm run build",
"test": "node scripts/test",
"start": "node ./scripts/start",
"pretest-e2e-ios-release": "npm run build",
"clean": "node ./scripts/clean",
"test-e2e-ios": "node ./scripts/test-e2e --ios",
"test-e2e-ios-release": "node ./scripts/test-e2e --ios --release",
"test-unit-ios": "node ./scripts/test-unit --ios",
"test-unit-android": "node ./scripts/test-unit --android",
"test-js": "node ./scripts/test-js",
"xcode": "open example/ios/NotificationsExampleApp.xcodeproj",
"androidStudio": "open -a /Applications/Android\\ Studio.app ./example/android",
"prerelease": "npm run build",
"release": "node ./scripts/release",
"generate-changelog": "gren changelog",
"docusaurus": "npm start --prefix website"
},
更新:我prepare
在我的 fork 中添加了一个条目,package.json
创建了 dist 文件。我仍然很好奇为什么原始回购会自动完成。
解决方案
推荐阅读
- matlab - 如何在matlab中计算和绘制SLA数据(3维矩阵)的快速傅里叶变换?
- angular - 为什么双向绑定在 mat-table 上不起作用?
- r - R 的 ifelse 对昂贵函数的条件向量化有良好的性能吗?
- flutter - 如何在 FlutterActivity 中获取上下文?
- javascript - 点击输入 type="radio" 时显示价格?
- firebase - Firebase ID 令牌的“aud”(受众)声明不正确
- soap - 如何正确安装wsimport
- javascript - 无法在单独的 React JSX 文件中引用类
- java - SUNFLOW:仅绘制 3D 网格的轮廓边缘
- clang - 如何在 Windows 中使用 openmp 和 clang 编译