We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65bc70d commit 16f14d0Copy full SHA for 16f14d0
resources/build-npm.ts
@@ -97,7 +97,10 @@ async function buildPackage(outDir: string): Promise<void> {
97
assert(match);
98
const [, name, ext] = match;
99
100
- if (prodFile === devHelper || ext === 'js.map') {
+ if (ext === 'js.map') {
101
+ continue;
102
+ } else if (prodFile === devHelper) {
103
+ packageJSON.exports['./dev'] = './dev/index.js';
104
continue;
105
}
106
@@ -168,7 +171,7 @@ function emitTSFiles(options: {
168
171
tsHost.writeFile = (filepath, body) => writeGeneratedFile(filepath, body);
169
172
170
173
const tsProgram = ts.createProgram(
- ['src/index.ts', 'src/development.ts'],
174
+ ['src/index.ts', 'src/dev/index.ts'],
175
tsOptions,
176
tsHost,
177
);
0 commit comments