{"id":28951,"date":"2026-08-23T12:01:28","date_gmt":"2026-08-23T03:01:28","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=28951"},"modified":"2026-08-23T12:12:16","modified_gmt":"2026-08-23T03:12:16","slug":"monorepo-2","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=28951","title":{"rendered":"monorepo"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">monorepo\u306e\u30e1\u30ea\u30c3\u30c8<\/h2>\n\n\n\n<ul>\n<li>package.json\u306e\u53ef\u8aad\u6027\u5411\u4e0a<\/li>\n\n\n\n<li>\u90e8\u5206\u7684\u306bpublish\u3057\u305f\u3044\u5834\u5408\u306b\u4fbf\u5229<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f8b<\/h2>\n\n\n\n<p>repo\/<br>\u251c\u2500 package.json \u2190 \u30ea\u30dd\u30b8\u30c8\u30ea\u5168\u4f53<\/p>\n\n\n\n<p>\u251c\u2500 pnpm-workspace.yaml \u2190\u307e\u3068\u3081\u3084\u304f<br>\u251c\u2500 apps\/<br>\u2502 \u251c\u2500 web\/<br>\u2502 \u2502 \u2514\u2500 package.json \u2190 Web\u30a2\u30d7\u30ea<br>\u2502 \u2514\u2500 admin\/<br>\u2502 \u2514\u2500 package.json \u2190 \u7ba1\u7406\u753b\u9762<br>\u2514\u2500 packages\/<br>\u251c\u2500 ui\/<br>\u2502 \u2514\u2500 package.json \u2190 \u5171\u901aUI<br>\u2514\u2500 utils\/<br>\u2514\u2500 package.json \u2190 \u5171\u901a\u30e9\u30a4\u30d6\u30e9\u30ea<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u306a\u305c\u304b<\/h2>\n\n\n\n<ul>\n<li>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u3068\u3069\u3081\u305f\u3044\u304b\u3089\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u500b\u5225\u306bpnpm install\u306f\u4e0d\u8981<\/h2>\n\n\n\n<p>pnpm workspace\u304c\u307e\u3068\u3081\u3066\u3084\u3063\u3066\u304f\u308c\u308b\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001node_modules\u306f\u500b\u5225\u30d5\u30a9\u30eb\u30c0\u306b\u3067\u304d\u308b\u304c\u3001\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3067\u5bb9\u91cf\u306f\u7bc0\u7d04\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">package.json\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u3069\u3046\u3059\u308b\u304b\u554f\u984c<\/h2>\n\n\n\n<p><strong>\u793e\u5185\u30a2\u30d7\u30ea\u30fbWeb\u30b5\u30fc\u30d3\u30b9\u306emonorepo<\/strong> \u2192 version\u3092\u3042\u307e\u308a\u610f\u8b58\u3057\u306a\u3044\uff0f\u7d71\u4e00\u904b\u7528<\/p>\n\n\n\n<p><strong>npm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8907\u6570\u516c\u958b\u3059\u308bmonorepo<\/strong> \u2192 <strong>package\u3054\u3068\u306bversion\u3092\u5206\u3051\u308b<\/strong><\/p>\n\n\n\n<p><strong>\u5168\u90e8\u3092\u4e00\u4f53\u3068\u3057\u3066\u30ea\u30ea\u30fc\u30b9\u3059\u308b\u5927\u578b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/strong> \u2192 version\u7d71\u4e00<\/p>\n","protected":false},"excerpt":{"rendered":"monorepo\u306e\u30e1\u30ea\u30c3\u30c8 \u4f8b repo\/\u251c\u2500 package.json \u2190 \u30ea\u30dd\u30b8\u30c8\u30ea\u5168\u4f53 \u251c\u2500 pnpm-workspace.yaml \u2190\u307e\u3068\u3081\u3084\u304f\u251c\u2500 apps\/\u2502 \u251c\u2500 web\/\u2502 \u2502 \u2514\u2500 package.js [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/28951"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=28951"}],"version-history":[{"count":8,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/28951\/revisions"}],"predecessor-version":[{"id":28965,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/28951\/revisions\/28965"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28951"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}