File tree Expand file tree Collapse file tree 5 files changed +20
-19
lines changed Expand file tree Collapse file tree 5 files changed +20
-19
lines changed Original file line number Diff line number Diff line change @@ -162,13 +162,11 @@ The way typescript handles type-only imports and ambient types effectively hides
162
162
163
163
Otherwise the plugin should work in watch mode. Make sure to run a normal build after watch session to catch any type errors.
164
164
165
- ### Version
165
+ ### Requirements
166
166
167
- This plugin currently requires TypeScript ` 2.4+ ` .
168
-
169
- ### Rollup version
170
-
171
- This plugin currently requires rollup ` 0.50+ ` .
167
+ TypeScript ` 2.4+ `
168
+ Rollup ` 0.50+ `
169
+ Node ` 6.4.0+ ` (basic es6 support)
172
170
173
171
### Reporting bugs
174
172
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rollup-plugin-typescript2" ,
3
- "version" : " 0.15.2 " ,
3
+ "version" : " 0.16.0 " ,
4
4
"description" : " Seamless integration between Rollup and TypeScript. Now with errors." ,
5
5
"main" : " dist/rollup-plugin-typescript2.cjs.js" ,
6
6
"module" : " dist/rollup-plugin-typescript2.es.js" ,
40
40
"typescript" : " >=2.4.0"
41
41
},
42
42
"devDependencies" : {
43
- "typescript" : " ^2.9.1 " ,
43
+ "typescript" : " ^2.9.2 " ,
44
44
"object-hash" : " ^1.3.0" ,
45
45
"colors" : " ^1.2.4" ,
46
46
"graphlib" : " ^2.1.5" ,
53
53
"@types/object-hash" : " ^1.2.0" ,
54
54
"@types/resolve" : " ^0.0.8" ,
55
55
"rimraf" : " ^2.6.2" ,
56
- "rollup" : " ^0.59.4 " ,
56
+ "rollup" : " ^0.62.0 " ,
57
57
"rollup-plugin-typescript2" : " github:ezolenko/rollup-plugin-typescript2#master" ,
58
58
"rollup-plugin-node-resolve" : " ^3.3.0" ,
59
59
"rollup-plugin-commonjs" : " ^9.1.3" ,
Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ export class LanguageServiceHost implements tsTypes.LanguageServiceHost
11
11
private snapshots : { [ fileName : string ] : tsTypes . IScriptSnapshot } = { } ;
12
12
private versions : { [ fileName : string ] : number } = { } ;
13
13
private service ?: tsTypes . LanguageService ;
14
+ private fileNames : Set < string > ;
14
15
15
16
constructor ( private parsedConfig : tsTypes . ParsedCommandLine , private transformers : TransformerFactoryCreator [ ] )
16
17
{
18
+ this . fileNames = new Set ( parsedConfig . fileNames ) ;
17
19
}
18
20
19
21
public reset ( )
@@ -34,6 +36,7 @@ export class LanguageServiceHost implements tsTypes.LanguageServiceHost
34
36
const snapshot = tsModule . ScriptSnapshot . fromString ( data ) ;
35
37
this . snapshots [ fileName ] = snapshot ;
36
38
this . versions [ fileName ] = ( this . versions [ fileName ] || 0 ) + 1 ;
39
+ this . fileNames . add ( fileName ) ;
37
40
return snapshot ;
38
41
}
39
42
@@ -68,7 +71,7 @@ export class LanguageServiceHost implements tsTypes.LanguageServiceHost
68
71
69
72
public getScriptFileNames ( )
70
73
{
71
- return Object . keys ( this . snapshots ) ;
74
+ return Array . from ( this . fileNames . values ( ) ) ;
72
75
}
73
76
74
77
public getCompilationSettings ( ) : tsTypes . CompilerOptions
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
- "target" : " es5 " ,
3
+ "target" : " es6 " ,
4
4
"noImplicitAny" : true ,
5
5
"sourceMap" : true ,
6
6
"noUnusedParameters" : true ,
You can’t perform that action at this time.
0 commit comments