We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75fef33 commit 7f412fcCopy full SHA for 7f412fc
packages/ui-components/src/scripts/publish.mjs
@@ -3,8 +3,12 @@ import { writeFile } from 'node:fs/promises';
3
4
import pkg from '../package.json' with { type: 'json' };
5
6
+// Strip the devDependencies, since they aren't needed for publish
7
+// Strip the exports, since we don't want to reference './src'
8
/* eslint-disable @typescript-eslint/no-unused-vars */
9
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).
12
cleanedPkg.imports['#ui/*'] = ['./*'];
13
14
await writeFile(
0 commit comments