chore: verify release package
This commit is contained in:
@@ -4,6 +4,11 @@ import path from 'path'
|
||||
|
||||
const pkgPath = path.resolve('package.json')
|
||||
|
||||
// 校验包合法性
|
||||
fs.accessSync(path.resolve('dist'), fs.constants.F_OK)
|
||||
fs.accessSync(path.resolve('dist/canvas-editor.es.js'), fs.constants.F_OK)
|
||||
fs.accessSync(path.resolve('dist/canvas-editor.umd.js'), fs.constants.F_OK)
|
||||
|
||||
// 缓存项目package.json
|
||||
const sourcePkg = fs.readFileSync(pkgPath, 'utf-8')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user