add INIT_CWD environment variable

Aperta
#243 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@fengmk2 ci sta già lavorando.

Dal 14/3/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Imported from https://github.com/voidzero-dev/vite-plus/issues/74

Scripts are run from the root of the package folder, regardless of what the current working directory is when npm is invoked. If you want your script to use different behavior based on what subdirectory you're in, you can use the INIT_CWD environment variable, which holds the full path you were in when you ran npm run.

https://docs.npmjs.com/cli/v8/using-npm/scripts

Lingua principale
Rust
Stelle
466
Fork
42
Merge medio
1g 20h
PR unite (30g)
21

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di voidzero-dev/vite-task

Tutte le issue di voidzero-dev/vite-task

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.