Skip to content

Commit

Permalink
fix: Update non-bundle to include more source file types.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed May 30, 2022
1 parent 6631469 commit 01a04cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/packemon/src/Package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { CodeArtifact } from './CodeArtifact';
import {
DEFAULT_FORMATS,
EXCLUDE,
EXTENSIONS,
FORMATS_BROWSER,
FORMATS_NATIVE,
FORMATS_NODE,
Expand Down Expand Up @@ -236,8 +237,10 @@ export class Package {

@Memoize()
getSourceFiles(): string[] {
const extsWithoutPeriod = EXTENSIONS.map((ext) => ext.slice(1)).join(',');

return glob
.sync('src/**/*.{js,jsx,ts,tsx}', {
.sync(`src/**/*.{${extsWithoutPeriod}}`, {
absolute: true,
cwd: this.path.path(),
onlyFiles: true,
Expand Down

0 comments on commit 01a04cb

Please sign in to comment.