Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ pnpm-debug.log*
/node_modules

# Build output
# For MOST Node.js projects, you would ignore the build output directory.
# However, for a GitHub Action packaged with ncc, the 'dist' directory
# MUST be committed to the repository. Therefore, this line is commented out.
# /dist
# Only the ncc-bundled files are needed for the GitHub Action to run.
# All other tsc output in dist/ is ignored.
/dist/*
!/dist/index.js
!/dist/sourcemap-register.js
!/dist/licenses.txt

# TypeScript cache files
# These files are used by the TypeScript compiler to speed up compilation.
Expand Down
16 changes: 9 additions & 7 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ npm test
echo "🔨 Building dist/..."
npm run build && npm run package

# 3. Stage any dist/ changes so the commit includes the fresh build
if ! git diff --quiet dist/; then
echo "📦 dist/ has changed — staging updated files..."
git add dist/
else
echo "✅ dist/ is up-to-date."
fi
# 3. Stage only the bundled files needed by the action
for f in dist/index.js dist/sourcemap-register.js dist/licenses.txt; do
if [ -f "$f" ] && ! git diff --quiet "$f" 2>/dev/null; then
echo "📦 $f has changed — staging..."
git add "$f"
fi
done

echo "✅ dist/ is up-to-date."
22 changes: 0 additions & 22 deletions dist/api/PurviewClient.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/api/PurviewClient.d.ts.map

This file was deleted.

238 changes: 0 additions & 238 deletions dist/api/PurviewClient.js

This file was deleted.

Loading
Loading