Skip to content

Commit

Permalink
chore: Allow any NPM modules (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
gethinwebster authored Jul 15, 2024
1 parent b044752 commit 8e4e5a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 51 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged

# Section for git-secrets

Expand Down
48 changes: 0 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/build/tasks/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ function createImporter(inlines: InlineStylesheet[]): sass.Importer {

const npmImports = {
findFileUrl(url: string) {
if (url.startsWith('@cloudscape-design/')) {
return new URL(`${pathToFileURL('node_modules')}/${url}`);
if (url.startsWith('.') || url.startsWith('~')) {
return null;
}
return null;
return new URL(`${pathToFileURL('node_modules')}/${url}`);
},
};

Expand Down

0 comments on commit 8e4e5a0

Please sign in to comment.