arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io
Support Running Without Triggering npm pack | postbuild support
- Lingua principale
- TypeScript
- Stelle
- 1.6k
- Fork
- 65
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
# Description:
It would be helpful to allow the tool to run directly on the current folder without automatically triggering `npm pack`.
# Use Case:
I want to use this tool as part of a `postbuild` script. However, the current behavior causes an infinite loop:
- `npm postbuild` triggers `attw`
- `attw` triggers `npm pack`
- `npm pack` triggers `npm build`
- `npm build` triggers `npm postbuild`
- ...and the cycle **repeats**
# Current Workaround:
To avoid this loop, I manually create a tarball and run `attw` on it:
```
"postbuild": "tar -czf dist/archive.tgz LICENSE README.md dist/cjs dist/esm dist/umd docs package.json && npx attw --format ascii dist/archive.tgz && rm dist/archive.tgz"
```
# Proposed Solution:
Introduce an option or flag to allow `attw` to operate directly on the current directory without invoking `npm pack`.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia individuando il percorso della CLI attw che invoca npm pack e verifica come vengono analizzate le opzioni della riga di comando. La modifica è completa quando attw può analizzare la directory corrente senza invocare npm pack, così da poter essere eseguito da uno script postbuild senza attivare il ciclo di build.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- node.js, typescript
- Ambito
- build-system, cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100