fix: no .map

fix: no map
This commit is contained in:
imccyu
2026-08-12 01:42:55 +08:00
parent d91180db9a
commit 19303da8de
12 changed files with 57 additions and 74 deletions

View File

@@ -45,9 +45,7 @@
"lib/typert.host.js",
"lib/typert.host.d.ts",
"lib/typert.remote-client.js",
"lib/typert.remote-client.d.ts",
"lib/typert.remote-client.d.ts.map",
"src"
"lib/typert.remote-client.d.ts"
],
"license": "BSD-3-Clause",
"peerDependencies": {

View File

@@ -49,9 +49,7 @@
"lib/typert.host.js",
"lib/typert.host.d.ts",
"lib/typert.remote-client.js",
"lib/typert.remote-client.d.ts",
"lib/typert.remote-client.d.ts.map",
"src"
"lib/typert.remote-client.d.ts"
],
"license": "BSD-3-Clause",
"peerDependencies": {

View File

@@ -49,8 +49,7 @@
"lib/typert.host.js",
"lib/typert.host.d.ts",
"lib/typert.remote-client.js",
"lib/typert.remote-client.d.ts",
"lib/typert.remote-client.d.ts.map"
"lib/typert.remote-client.d.ts"
],
"license": "BSD-3-Clause",
"peerDependencies": {

View File

@@ -98,10 +98,12 @@ export class WorkspaceTypertGenerator {
const remoteActual = manifest.exports !== null && typeof manifest.exports === 'object'
? (manifest.exports as Record<string, unknown>)['./remote']
: undefined
// The declaration map is emitted beside these two but never published: it
// serves editor navigation in the workspace, where the package link
// resolves its source.
const remoteFiles = [
'lib/typert.remote-client.js',
'lib/typert.remote-client.d.ts',
'lib/typert.remote-client.d.ts.map',
]
if (artifact.remote === undefined) {
if (remoteActual !== undefined || remoteFiles.some(file => files.includes(file))) {

View File

@@ -18,7 +18,6 @@
"lib/typert.host.js",
"lib/typert.host.d.ts",
"lib/typert.remote-client.js",
"lib/typert.remote-client.d.ts",
"lib/typert.remote-client.d.ts.map"
"lib/typert.remote-client.d.ts"
]
}