mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
Upgrade rollup and plugins to fix build (#6493)
This commit is contained in:
parent
2954cf8a99
commit
f68b8adaac
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,7 +6,6 @@
|
||||
/gh-pages
|
||||
/jsdoc
|
||||
/node_modules
|
||||
/package-lock.json
|
||||
.DS_Store
|
||||
.idea
|
||||
.project
|
||||
|
@ -39,7 +39,8 @@ function run(bin, args, done) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
var exe = '"' + process.execPath + '"';
|
||||
var src = require.resolve(bin);
|
||||
var ps = exec([exe, src].concat(args || []).join(' '));
|
||||
var cmd = [exe, src].concat(args || []).join(' ');
|
||||
var ps = exec(cmd);
|
||||
|
||||
ps.stdout.pipe(process.stdout);
|
||||
ps.stderr.pipe(process.stderr);
|
||||
@ -80,7 +81,7 @@ function bowerTask() {
|
||||
}
|
||||
|
||||
function buildTask() {
|
||||
return run('rollup/bin/rollup', ['-c', argv.watch ? '--watch' : '']);
|
||||
return run('rollup/dist/bin/rollup', ['-c', argv.watch ? '--watch' : '']);
|
||||
}
|
||||
|
||||
function packageTask() {
|
||||
|
12751
package-lock.json
generated
Normal file
12751
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@ -52,14 +52,14 @@
|
||||
"karma-firefox-launcher": "^1.0.1",
|
||||
"karma-jasmine": "^2.0.1",
|
||||
"karma-jasmine-html-reporter": "^1.4.0",
|
||||
"karma-rollup-preprocessor": "^6.1.1",
|
||||
"karma-rollup-preprocessor": "^7.0.0",
|
||||
"merge-stream": "^1.0.1",
|
||||
"pixelmatch": "^4.0.2",
|
||||
"rollup": "^0.67.4",
|
||||
"rollup-plugin-commonjs": "^9.2.0",
|
||||
"rollup": "^1.0.0",
|
||||
"rollup-plugin-commonjs": "^10.0.0",
|
||||
"rollup-plugin-istanbul": "^2.0.1",
|
||||
"rollup-plugin-node-resolve": "^3.4.0",
|
||||
"rollup-plugin-terser": "^3.0.0",
|
||||
"rollup-plugin-node-resolve": "^5.0.0",
|
||||
"rollup-plugin-terser": "^5.0.0",
|
||||
"yargs": "^12.0.5"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -95,9 +95,11 @@ function stylesheet(config = {}) {
|
||||
this.error('failed to guess the output file name');
|
||||
}
|
||||
|
||||
bundle[name] = {
|
||||
code: styles.filter(v => !!v).join('')
|
||||
};
|
||||
this.emitFile({
|
||||
type: 'asset',
|
||||
source: styles.filter(v => !!v).join(''),
|
||||
fileName: name
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user