Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

Commit

Permalink
Do not verify that .npmignore does not include demos/local
Browse files Browse the repository at this point in the history
We want to publish demo source but not demo builds.

For more see: #1039
  • Loading branch information
notlee authored and chee committed Aug 25, 2021
1 parent 0ac5f51 commit ba9e685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/verify-dot-npmignore.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function dotNpmignore(config) {

let lineNumber = 0;
for await (const line of reader) {
const match = line.trim().match(/(main\.scss|main\.js|src\/?|demos\/?)/);
const match = line.trim().match(/(main\.scss|main\.js|src\/?|demos\/?$|demos\/(?!local))/);
if (match) {
const filename = match[1];
result.push({
Expand Down
1 change: 1 addition & 0 deletions test/integration/verify/fixtures/npmignore/.npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
honk
test/
demos/local

0 comments on commit ba9e685

Please sign in to comment.