mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 02:21:20 -08:00
fix(vast): [PKG-VAST-03] preserve npm initialization with explicit workspace mode
This commit is contained in:
1 parent
314a1c3163
commit
c162d2b3b3
27 files changed
+13189
-191
No files matched your search
@@ -12,7 +12,8 @@ export async function vastImplementations() {
|
||||
const { outputFiles } = await build({ entryPoints: [resolveSource('packages/artplayer-plugin-vast/src/index')], bundle: true, write: false, format: 'cjs', platform: 'browser', external: ['@glomex/vast-ima-player'] })
|
||||
const frozen = async source => (await transform(source, { loader: 'js', format: 'cjs', target: 'es2020' })).code
|
||||
return [
|
||||
{ name: 'source', code: outputFiles[0].text },
|
||||
{ name: 'source', published: true, code: outputFiles[0].text },
|
||||
{ name: 'source-workspace', options: { compatibility: 'workspace-1.2' }, code: outputFiles[0].text },
|
||||
{ name: 'published-1.0.0-source', historical: true, published: true, code: await frozen(readMember(archive, 'package/src/index.js').toString()) },
|
||||
{ name: 'frozen-workspace-1.2.0', historical: true, code: await frozen(contract.sources.get('packages/artplayer-plugin-vast/src/index.js')) },
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user