This repository was archived by the owner on Aug 4, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 35
35
"typescript" : " ^1.8.9"
36
36
},
37
37
"devDependencies" : {
38
- "mocha" : " ^2.3.3 " ,
38
+ "mocha" : " ^3.0.0 " ,
39
39
"rimraf" : " ^2.5.4" ,
40
- "rollup" : " ^0.25.7 " ,
40
+ "rollup" : " ^0.34.3 " ,
41
41
"rollup-plugin-buble" : " ^0.12.1"
42
42
},
43
43
"repository" : {
Original file line number Diff line number Diff line change @@ -159,6 +159,8 @@ export default function typescript ( options ) {
159
159
160
160
var result ;
161
161
162
+ importer = importer . split ( '\\' ) . join ( '/' ) ;
163
+
162
164
if ( compareVersions ( typescript . version , '1.8.0' ) < 0 ) {
163
165
// Suppress TypeScript warnings for function call.
164
166
result = typescript . nodeModuleNameResolver ( importee , importer , resolveHost ) ;
@@ -208,7 +210,7 @@ export default function typescript ( options ) {
208
210
} ) ;
209
211
210
212
if ( fatalError ) {
211
- throw new Error ( `There were TypeScript errors transpiling " ${ id } " ` ) ;
213
+ throw new Error ( `There were TypeScript errors transpiling` ) ;
212
214
}
213
215
214
216
return {
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ describe( 'rollup-plugin-typescript', function () {
82
82
83
83
it ( 'reports diagnostics and throws if errors occur during transpilation' , function ( ) {
84
84
return bundle ( 'sample/syntax-error/missing-type.ts' ) . catch ( function ( error ) {
85
- assert . ok ( error . message . indexOf ( 'There were TypeScript errors' ) === 0 , 'Should reject erroneous code.' ) ;
85
+ assert . ok ( error . message . indexOf ( 'There were TypeScript errors transpiling ' ) !== - 1 , 'Should reject erroneous code.' ) ;
86
86
} ) ;
87
87
} ) ;
88
88
You can’t perform that action at this time.
0 commit comments