Skip to content

Commit

Permalink
fix: make build work for publication (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
targos authored Dec 5, 2022
1 parent a529004 commit 70a81c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/fix-react-shadow.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { readFile, writeFile } from 'node:fs/promises';

const rootLayoutFile = new URL(
'../lib/components/RootLayout.js',
'../lib/components/root-layout/RootLayout.js',
import.meta.url,
);

const rootLayout = await readFile(rootLayoutFile, 'utf8');
if (!rootLayout.includes('react-shadow/emotion')) {
throw new Error(
'react-shadow/emotion not found in lib/components/RootLayout.js',
'react-shadow/emotion not found in lib/components/root-layout/RootLayout.js',
);
}

Expand Down

0 comments on commit 70a81c8

Please sign in to comment.