mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
fix(build): [ENG-12] exclude declaration sources from library artifacts
This commit is contained in:
1 parent
38355ae4cf
commit
4a299eb2d4
50 files changed
+242
-2157
No files matched your search
@@ -26,6 +26,7 @@ export function checkFiles(manifest, files, historical = []) {
|
||||
for (const file of historical.filter(file => /^package\/(?:dist|types)\//.test(file)))
|
||||
assert(files.includes(file), `Historical distribution file removed: ${file}`)
|
||||
assert(!files.some(file => /^package\/(?:src|public|node_modules)\//.test(file)), 'Source/dependencies leaked into package')
|
||||
assert(!files.some(file => /\.[cm]?ts$/.test(file) && !/\.d\.[cm]?ts$/.test(file)), 'Authored TypeScript leaked into package')
|
||||
assert(!files.includes('package/tsconfig.json'), 'Implementation tsconfig leaked into package')
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ export function getViteBuildConfig(options) {
|
||||
|
||||
const config = {
|
||||
configFile: false,
|
||||
publicDir: false,
|
||||
logLevel: 'warn',
|
||||
build: {
|
||||
outDir,
|
||||
|
||||
Reference in new issue
Block a user