Skip to content

Commit 7f412fc

Browse files
committed
code comments
1 parent 75fef33 commit 7f412fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/ui-components/src/scripts/publish.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ import { writeFile } from 'node:fs/promises';
33

44
import pkg from '../package.json' with { type: 'json' };
55

6+
// Strip the devDependencies, since they aren't needed for publish
7+
// Strip the exports, since we don't want to reference './src'
68
/* eslint-disable @typescript-eslint/no-unused-vars */
79
const { devDependencies, exports, ...cleanedPkg } = pkg;
10+
// Change `#ui` to `./` from `./src`, since we are publishing
11+
// from the same directory as the source code (rather, the compiled code).
812
cleanedPkg.imports['#ui/*'] = ['./*'];
913

1014
await writeFile(

0 commit comments

Comments
 (0)