Repository navigation
build: write the webpack bundle to dist/ instead of public/ - #167
Merged
Merged
Conversation
public/ and the Public/ folder of the module split (#163) are one folder on macOS and Windows: .gitignore hid Public/*.ps1, Build-Module copied them as bundle files, and the case-insensitive PSScriptAnalyzer filter in CI dropped their findings. The bundle goes to dist/ now, as in the PSU plugin's module template. The built module is unchanged. Fixes #165 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…skip list Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #165
The webpack bundle folder
public/is the same folder asPublic/on macOS and Windows. The module split in #163 addsPublic/. The bundle now goes tomodules/<Module>/dist/, as in the PSU plugin's module template (eizedev/claude-plugins#89).Changed:
build/webpack.base.cjs: output folderdist. The Pivot worker build inherits it.build/Build-Module.ps1: copies the bundle fromdist/..gitignore:dist/instead ofpublic/..github/workflows/ci.ymland the command inAGENTS.md: the PSScriptAnalyzer filter skipsdist.build/Measure-PowerShellSize.ps1: skipsdist.tests/powershell/Growth.Tests.ps1now checks thatmodules/M/distis skipped next to a measuredPublic/.AGENTS.md: says where webpack writes the bundle.After pulling: delete an old
modules/*/public/folder once. It is no longer ignored, and on macOS and Windows it is the futurePublic/folder.Checks
origin/mainand from this branch:diff -rof the output folders shows no difference. The demo modules build too.npm test: 160 passed, 5 skipped. Pester: 357 passed, 0 failed, 7 skipped. PSScriptAnalyzer as in CI: 0 findings.Pivot.psm12,731 code lines,New-UDPivotReport267; no PowerShell file changed size).docs/assets/charts/and does not read a module's bundle folder. CI runs them.docs/(development page included), CONTRIBUTING, AGENTS.md, CI workflows,.jscpd.json, the docs site webpack config, Pester and node tests.What does not fit
The list of skipped folders (
node_modules,dist,output) is written in three places: the CI filter,Measure-PowerShellSize.ps1and the command in AGENTS.md. This change had to edit all three. I propose one place for it in a follow-up.🤖 Generated with Claude Code