Skip to content

Commit 7ec5095

Browse files
committed
fixup! [DX] Rework building process, and add build/watch scripts to packages package.json
1 parent a850401 commit 7ec5095

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

bin/rollup.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,13 @@ const moveTypescriptDeclarationsPlugin = (packageRoot) => ({
4747
name: 'move-ts-declarations',
4848
writeBundle: async () => {
4949
const isBridge = packageRoot.includes('src/Bridge');
50-
const globPattern = path.join(packageRoot, 'dist', '**', 'assets', 'src', '**/*.d.ts');
50+
const globPattern = path.join('dist', '**', 'assets', 'src', '**/*.d.ts');
5151
const files = glob.sync(globPattern);
5252

5353
files.forEach((file) => {
5454
// a bit odd, but remove first 8 or 11 directories, which will leave
5555
// only the relative path to the file
56-
const relativePath = file
57-
.split('/')
58-
.slice(isBridge ? 11 : 8)
59-
.join('/');
56+
const relativePath = file;
6057
const targetFile = relativePath.replace(
6158
`${relativePath
6259
.split('/')

0 commit comments

Comments
 (0)