File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 4444 "before 4am"
4545 ]
4646 } ,
47- {
48- // トップレベルの package .json/ package-lock.json が更新されたときに発動する
47+ {
48+ // トップレベルのpackage .json / package-lock.jsonが更新されたら発動
4949 "description" : "When top-level is updated, also run npm install in all examples/*" ,
5050 "matchPaths" : [
51- "package.json" , // リポジトリ直下の package.json
52- "package-lock.json" // 必要ならロックファイルをトリガーにすることも可能
51+ "package.json" ,
52+ "package-lock.json"
5353 ] ,
54-
5554 "postUpgradeTasks" : {
56- // これらのコマンドが連続で実行される
5755 "commands" : [
58- // 1. トップレベルの package-lock.json を再生成
56+ // 1. トップレベルでlockファイル再生成
5957 "npm install --package-lock-only" ,
6058
61- // 2. すべてのサブディレクトリに対してロックファイルを再生成
62- // bash 例: examples/* の各ディレクトリを回って package.json があるなら npm install
63- "for d in examples/*; do if [ -f \"$d/package.json\" ]; then cd \"$d\" && npm install --package-lock-only && cd -; fi; done"
59+ // 2. サブディレクトリごとに明示的に --prefix 付きでインストール
60+ "npm install --prefix examples/echo-bot --package-lock-only" ,
61+ "npm install --prefix examples/echo-bot-esm --package-lock-only" ,
62+ "npm install --prefix examples/echo-bot-ts-cjs --package-lock-only" ,
63+ "npm install --prefix examples/echo-bot-ts-esm --package-lock-only" ,
64+ "npm install --prefix examples/kitchensink --package-lock-only" ,
65+ "npm install --prefix examples/rich-menu --package-lock-only"
6466 ] ,
6567 "fileFilters" : [
68+ // トップレベルの更新
6669 "package.json" ,
6770 "package-lock.json" ,
71+ // サブディレクトリの lock ファイルもコミット
6872 "examples/**/package-lock.json"
6973 ]
7074 }
You can’t perform that action at this time.
0 commit comments