Skip to content

Commit 814a323

Browse files
authored
Merge pull request #1625 from sveltejs/update-deps
update/remove deps
2 parents 0daf887 + b03c011 commit 814a323

File tree

10 files changed

+2752
-995
lines changed

10 files changed

+2752
-995
lines changed

package-lock.json

+2,726-963
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+10-11
Original file line numberDiff line numberDiff line change
@@ -49,32 +49,31 @@
4949
"homepage": "https://github.com/sveltejs/svelte#README",
5050
"devDependencies": {
5151
"@types/mocha": "^5.2.0",
52-
"@types/node": "^9.6.6",
52+
"@types/node": "^10.5.5",
5353
"acorn": "^5.4.1",
5454
"acorn-dynamic-import": "^3.0.0",
5555
"chalk": "^2.4.0",
56-
"clorox": "^1.0.3",
5756
"codecov": "^3.0.0",
5857
"console-group": "^0.3.2",
5958
"css-tree": "1.0.0-alpha22",
60-
"eslint": "^4.19.1",
59+
"eslint": "^5.3.0",
6160
"eslint-plugin-html": "^4.0.3",
6261
"eslint-plugin-import": "^2.11.0",
6362
"estree-walker": "^0.5.1",
6463
"is-reference": "^1.1.0",
6564
"jsdom": "^11.8.0",
65+
"kleur": "^2.0.1",
6666
"locate-character": "^2.0.5",
67-
"magic-string": "^0.24.0",
68-
"mocha": "3",
67+
"magic-string": "^0.25.0",
68+
"mocha": "^5.2.0",
6969
"nightmare": "^3.0.1",
7070
"node-resolve": "^1.3.3",
71-
"nyc": "^11.7.1",
71+
"nyc": "^12.0.2",
7272
"prettier": "^1.12.1",
73-
"reify": "^0.15.1",
74-
"rollup": "^0.58.1",
73+
"rollup": "^0.63.5",
7574
"rollup-plugin-buble": "^0.19.2",
7675
"rollup-plugin-commonjs": "^9.1.0",
77-
"rollup-plugin-json": "^2.1.0",
76+
"rollup-plugin-json": "^3.0.0",
7877
"rollup-plugin-node-resolve": "^3.3.0",
7978
"rollup-plugin-replace": "^2.0.0",
8079
"rollup-plugin-typescript": "^0.8.1",
@@ -86,9 +85,9 @@
8685
"source-map": "0.6",
8786
"source-map-support": "^0.5.4",
8887
"tiny-glob": "^0.2.1",
89-
"ts-node": "^6.0.0",
88+
"ts-node": "^7.0.0",
9089
"tslib": "^1.8.0",
91-
"typescript": "^2.8.3"
90+
"typescript": "^3.0.1"
9291
},
9392
"nyc": {
9493
"include": [

rollup.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ export default [
7676
typescript: require('typescript')
7777
})
7878
],
79-
experimentalDynamicImport: true,
8079
experimentalCodeSplitting: true
8180
},
8281

src/cli/error.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import clorox from 'clorox';
1+
import c from 'kleur';
22

33
function stderr(msg) {
44
console.error(msg); // eslint-disable-line no-console
55
}
66

77
export default function error(err) {
8-
stderr(`${clorox.red(err.message || err)}`);
8+
stderr(c.red(err.message || err));
99

1010
if (err.frame) {
1111
stderr(err.frame);
1212
} else if (err.stack) {
13-
stderr(`${clorox.gray(err.stack)}`);
13+
stderr(c.gray(err.stack));
1414
}
1515

1616
process.exit(1);

src/cli/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ prog
2222
.example('compile -f umd MyComponent.html > MyComponent.js')
2323

2424
.action((input, opts) => {
25-
import('./compile.js').then(({ compile }) => {
25+
import('./compile').then(({ compile }) => {
2626
compile(input, opts);
2727
});
2828
})

svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env node
2-
require('./cli/index.ts.js');
2+
require('./cli/index.js');

test/cli/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const assert = require('assert');
44
const glob = require('tiny-glob/sync.js');
55
const shell = require("shelljs");
66

7-
const cli = path.resolve(__dirname, "../../cli/index.ts.js");
7+
const cli = path.resolve(__dirname, "../../cli/index.js");
88

99
function normalize(str) {
1010
return str

test/custom-elements/index.js

+8-7
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ const assert = fs.readFileSync('test/custom-elements/assert.js', 'utf-8');
1717
describe('custom-elements', function() {
1818
this.timeout(10000);
1919

20-
const nightmare = new Nightmare({ show: false });
21-
22-
nightmare.on('console', (type, ...args) => {
23-
console[type](...args);
24-
});
25-
2620
let svelte;
2721
let server;
2822
let bundle;
@@ -84,6 +78,12 @@ describe('custom-elements', function() {
8478
.then(generated => {
8579
bundle = generated.code;
8680

81+
const nightmare = new Nightmare({ show: false });
82+
83+
nightmare.on('console', (type, ...args) => {
84+
console[type](...args);
85+
});
86+
8787
return nightmare
8888
.goto('http://localhost:6789')
8989
.evaluate(() => {
@@ -95,7 +95,8 @@ describe('custom-elements', function() {
9595
.catch(message => {
9696
console.log(addLineNumbers(bundle));
9797
throw new Error(message);
98-
});
98+
})
99+
.then(() => nightmare.end());
99100
});
100101

101102

test/helpers.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import jsdom from 'jsdom';
2-
import { JSDOM } from 'jsdom';
32
import assert from 'assert';
43
import glob from 'tiny-glob/sync.js';
54
import fs from 'fs';
@@ -47,7 +46,7 @@ export function tryToReadFile(file) {
4746
}
4847

4948
export const virtualConsole = new jsdom.VirtualConsole();
50-
const { window } = new JSDOM('<main></main>', {virtualConsole});
49+
const { window } = new jsdom.JSDOM('<main></main>', {virtualConsole});
5150
global.document = window.document;
5251

5352
export function env() {

test/test.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ const glob = require("tiny-glob/sync.js");
22

33
require("./setup");
44

5-
glob("**/__test__.js", { cwd: "src" }).forEach(function(file) {
6-
require("../src/" + file);
7-
});
8-
95
glob("*/index.js", { cwd: "test" }).forEach(function(file) {
106
require("./" + file);
11-
});
7+
});

0 commit comments

Comments
 (0)