我在這里分叉了這個存儲庫,非常簡單?,F(xiàn)在我指出我的項目使用我的分叉。在我之后,除了文件夾丟失之外,一切看起來都很好。我知道需要運行才能生成這些文件,并且可以手動執(zhí)行此操作,但是Wix版本以某種方式在安裝軟件包時運行構(gòu)建步驟。與原始代碼的唯一區(qū)別是我更改了一些iOS代碼。官方的npm軟件包(意味著你可以按名稱安裝的軟件包)在安裝后會得到一些額外的愛嗎?我錯過了什么?package.jsonnpm installlib/distnpm 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"},更新:我在我的分叉中添加了一個條目,創(chuàng)建了dist文件。我仍然很好奇為什么原始存儲庫會自動執(zhí)行此操作。preparepackage.json
安裝后生成步驟未在分叉的 npm 包上發(fā)生
手掌心
2022-09-02 17:04:00