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 2fdfc61 commit ecb4a4bCopy full SHA for ecb4a4b
rollup.config.ts
@@ -7,8 +7,12 @@ import pascalcase from 'pascalcase'
7
import copy from 'rollup-plugin-copy'
8
9
const pkg = require('./package.json')
10
-const prebuildPkg = require('./temp/prebuild-package.json')
11
-Object.assign(pkg, prebuildPkg)
+try {
+ const prebuildPkg = require('./temp/prebuild-package.json')
12
+ Object.assign(pkg, prebuildPkg)
13
+} catch {
14
+ console.log("There's no pre-build package.json")
15
+}
16
17
// get all or any character after '/' in this case 'vue-quill'
18
const name = pkg.name.match(/[^/]*$/)[0]
0 commit comments