Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit d18bba3

Browse files
cnishinaheathkit
authored andcommitted
fix(types): remove relative path used for @types/node and @types/jasmine (#3535)
closes #3533
1 parent 4e7e8ec commit d18bba3

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

exampleTypescript/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"sourceMap": false,
77
"declaration": false,
88
"noImplicitAny": false,
9-
"outDir": "tmp"
9+
"outDir": "tmp",
10+
"types": ["node", "jasmine"]
1011
},
1112
"exclude": [
1213
"node_modules",

gulpfile.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ gulp.task('checkVersion', function(done) {
5858
});
5959

6060
gulp.task('built:copy', function() {
61-
return gulp.src(['lib/**/*','!lib/**/*.ts'])
61+
return gulp.src(['lib/**/*.js','lib/globals.d.ts'])
6262
.pipe(gulp.dest('built/'));
6363
});
6464

@@ -114,9 +114,8 @@ gulp.task('types', function(done) {
114114
'config', 'plugins', 'ptor'];
115115
var outputFile = path.resolve(folder, 'index.d.ts');
116116
var contents = '';
117-
contents += '/// <reference path="../../@types/node/index.d.ts" />\n';
118-
contents += '/// <reference path="../../@types/jasmine/index.d.ts" />\n';
119117
contents += '/// <reference path="../typings/index.d.ts" />\n';
118+
contents += '/// <reference path="./globals.d.ts" />\n';
120119
contents += 'import {ActionSequence, By, WebDriver, WebElement, WebElementPromise, promise, promise as wdpromise, until} from \'selenium-webdriver\';\n';
121120
files.forEach(function(file) {
122121
contents += parseTypingsFile(folder, file);

spec/install/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"moduleResolution": "node",
66
"sourceMap": false,
77
"declaration": false,
8-
"noImplicitAny": false
8+
"noImplicitAny": false,
9+
"types": ["node", "jasmine"]
910
},
1011
"exclude": [
1112
"node_modules",

0 commit comments

Comments
 (0)