In a monorepo with custom dev command, `ntl dev` runs with root cwd
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript
- 領域
- cli
調査の方向性
まず、monorepo の再現環境で ntl dev コマンドを追跡し、packages/test と packages/vite-project の動作を比較します。それぞれの netlify.toml にある command がどのように実行されるかを調べます。カスタムの dev コマンドが --cwd . を必要とせずに選択されたプロジェクトディレクトリを使用し、フレームワークによって検出されたコマンドが引き続き動作すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
In a monorepo with the following structure:
- package.json
- packages
- test
- package.json
- netlify.toml
- vite-project
- package.json
- netlify.toml
- test
..running ntl dev always has the cwd as the root of the repo. This happens whether it is run from inside packages/test or at the root, choosing test from the menu. This is confusing behaviour, and is different from the case where the framework is detected.
The only workaround is to add --cwd . to every command.
Steps to reproduce
- Clone https://github.com/ascorbic/monorepo-repro
- Run
pnpm i cdtopackages/testand runntl dev. Observepwdoutputcdtopackages/vite-projectand runntl dev. Observe that it runs correctly: runningviteinsidepackages/vite-project.- Uncomment the
commandinprojects/vite-project/netlify.toml - Run
ntl devagain. Observe that build fails
Configuration
[dev]
command = "vite"
Environment
System:
OS: macOS 13.4.1
CPU: (8) arm64 Apple M1
Memory: 115.97 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.8.1 - ~/.nvm/versions/node/v18.18.2/bin/npm
pnpm: 8.9.0 - ~/Library/pnpm/pnpm
npmGlobalPackages:
- 主要言語
- TypeScript
- スター
- 1.9k
- フォーク
- 481
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 74
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
netlify/cli のほかの issue
-
db-status.test fails if the database is disabled対応中かも @paulleephp が 7 日前に担当しました。 オープンtype: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
`client-ip` is not an IP address when `x-forwarded-for` holds a list or a port対応中かも @Dev-next-gen が 28 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
`netlify dev` with `--cwd` from outside the project: every function 500s with "module is not defined in ES module scope" (`detectZisiBuilder` passes a string to `readPackageUp`)対応中かも @bsplatt92 が 69 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area: command: deploy area: docs type: feature
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
netlify/cli#1984 · コメント 19 件 · リアクション 3 件 ·
メンテナーはふだん 1 日以内に返信
-
type: bug
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
[good first issue, hacktoberfest] 🏯 Hacktoberfest Task - Add new Japan Fact 898 (good-first-issue)オープンcommunity first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
lingdojo/kana-dojo#33145 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
code-yeongyu/senpi#4278 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Activity | The activity list ignores taskIds and returns the activities of every task対応中かも @NdekoCode が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ever-co/ever-gauzy#11469 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
griffinwork40/agent-afk#4408 ·
メンテナーはふだん 1 日以内に返信