Skip to content

Commit

Permalink
fix: remove test files from the svelte-jsoneditor npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Jan 13, 2023
1 parent b176f01 commit fe21ffb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ const config = {
},

package: {
dir: 'package'
dir: 'package',
files: (filepath) => {
// ignore test and snapshot files
if (filepath.endsWith('.test.ts') || filepath.includes('__snapshots__')) {
return false
}

return true
}
}
}

Expand Down

0 comments on commit fe21ffb

Please sign in to comment.