arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io
Support Running Without Triggering npm pack | postbuild support
- 主要言語
- TypeScript
- スター
- 1.6k
- フォーク
- 65
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
# 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`.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、npm pack を呼び出す attw CLI のパスを特定し、コマンドラインオプションがどのように解析されるかを確認します。attw が npm pack を呼び出さずにカレントディレクトリを解析でき、postbuild スクリプトから実行してもビルドループを発生させないようになれば、変更は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- node.js, typescript
- 領域
- build-system, cli
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100