Skip to content

Commit

Permalink
fix: remove trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-0dp committed Dec 12, 2024
1 parent 74f1927 commit 8126053
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/stencil-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ program
.option(

Check warning on line 16 in bin/stencil-bundle.js

View workflow job for this annotation

GitHub Actions / build (18.x, ubuntu-latest)

Replace `⏎········'-S,·--source-maps',⏎········'Include·source-maps·in·the·bundle.·This·is·useful·for·debugging',⏎····` with `'-S,·--source-maps',·'Include·source-maps·in·the·bundle.·This·is·useful·for·debugging'`

Check warning on line 16 in bin/stencil-bundle.js

View workflow job for this annotation

GitHub Actions / build (20.x, ubuntu-latest)

Replace `⏎········'-S,·--source-maps',⏎········'Include·source-maps·in·the·bundle.·This·is·useful·for·debugging',⏎····` with `'-S,·--source-maps',·'Include·source-maps·in·the·bundle.·This·is·useful·for·debugging'`
'-S, --source-maps',
'Include source-maps in the bundle. This is useful for debugging',
)
)
.option(
'-n, --name [filename]',
'What do you want to call the zip file. It defaults to stencil-bundle.zip',
Expand Down
2 changes: 1 addition & 1 deletion bin/stencil-push.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ program
.option(

Check warning on line 18 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (18.x, ubuntu-latest)

Replace `⏎········'-S,·--source-maps',⏎········'Include·source-maps·in·the·bundle.·This·is·useful·for·debugging',⏎····` with `'-S,·--source-maps',·'Include·source-maps·in·the·bundle.·This·is·useful·for·debugging'`

Check warning on line 18 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (20.x, ubuntu-latest)

Replace `⏎········'-S,·--source-maps',⏎········'Include·source-maps·in·the·bundle.·This·is·useful·for·debugging',⏎····` with `'-S,·--source-maps',·'Include·source-maps·in·the·bundle.·This·is·useful·for·debugging'`
'-S, --source-maps',
'Include source-maps in the bundle. This is useful for debugging',
)
)
.option(

Check warning on line 22 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (18.x, ubuntu-latest)

Replace `⏎········'-a,·--activate·[variationname]',⏎········'specify·the·variation·of·the·theme·to·activate'⏎····` with `'-a,·--activate·[variationname]',·'specify·the·variation·of·the·theme·to·activate'`

Check warning on line 22 in bin/stencil-push.js

View workflow job for this annotation

GitHub Actions / build (20.x, ubuntu-latest)

Replace `⏎········'-a,·--activate·[variationname]',⏎········'specify·the·variation·of·the·theme·to·activate'⏎····` with `'-a,·--activate·[variationname]',·'specify·the·variation·of·the·theme·to·activate'`
'-a, --activate [variationname]',
'specify the variation of the theme to activate'
Expand Down
6 changes: 3 additions & 3 deletions lib/stencil-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,9 @@ class Bundle {
*/
_bundleThemeFiles(archive, themePath) {
for (const { pattern, ignore } of PATHS_TO_ZIP) {
if (pattern === "assets/**/*" && !this.options.sourceMaps) {
ignore.push("assets/**/*.js.map");
}
if (pattern === 'assets/**/*' && !this.options.sourceMaps) {
ignore.push('assets/**/*.js.map');
}
archive.glob(pattern, { ignore, cwd: themePath });
}
}
Expand Down

0 comments on commit 8126053

Please sign in to comment.