Skip to content

Commit 774ed0c

Browse files
committed
Update build script
1 parent 87de5ff commit 774ed0c

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ install:
2525
- npm uninstall tslint --no-save
2626
- npm install
2727
- if [ "$TRAVIS_NODE_VERSION" = "6" ]; then
28-
npm uninstall typemock @typescript/vfs-om @typescript/vfs @typescript/vfs-path @typescript/vfs-core @typescript/vfs-errors --no-save;
28+
npm uninstall typemock @typescript/vfs @typescript/vfs-path @typescript/vfs-core @typescript/vfs-errors --no-save;
2929
npm run build:private-packages;
30-
npm install file:scripts/typemock file:scripts/vfs-om file:scripts/vfs file:scripts/vfs-path --no-save;
30+
npm install file:scripts/typemock file:scripts/vfs file:scripts/vfs-path --no-save;
3131
fi
3232

3333
cache:

jenkins.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ npm install
1212

1313
# Node 6 uses an older version of npm that does not symlink a package with a "file:" reference
1414
if [ "$1" = "6" ]; then
15-
npm uninstall typemock @typescript/vfs-om @typescript/vfs @typescript/vfs-path @typescript/vfs-core @typescript/vfs-errors --no-save;
15+
npm uninstall typemock @typescript/vfs @typescript/vfs-path @typescript/vfs-core @typescript/vfs-errors --no-save;
1616
npm run build:private-packages;
17-
npm install file:scripts/typemock file:scripts/vfs-om file:scripts/vfs file:scripts/vfs-path --no-save;
17+
npm install file:scripts/typemock file:scripts/vfs file:scripts/vfs-path --no-save;
1818
fi
1919

2020
npm update

src/harness/compiler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ namespace compiler {
233233
vpath.combine(project, "tsconfig.json");
234234
}
235235
else {
236-
[project] = host.vfs.scanSync(".", "ancestors-or-self", { accept: (path, stats) => stats.isFile() && host.vfs.stringComparer(vpath.basename(path), "tsconfig.json") === 0 });
236+
[project] = host.vfs.scanSync(".", "ancestors-or-self", {
237+
accept: (path: string, stats: vfs.FileSystem) => stats.isFile() && host.vfs.stringComparer(vpath.basename(path), "tsconfig.json") === 0
238+
});
237239
}
238240

239241
if (project) {

src/harness/harnessLanguageService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ namespace Harness.LanguageService {
131131
public getFilenames(): string[] {
132132
const fileNames: string[] = [];
133133
this.vfs.scanSync("/", "descendants-or-self", {
134-
accept: (path, stats) => {
134+
accept: (path: string, stats: vfs.FileSystem) => {
135135
if (stats.isFile()) {
136136
const scriptInfo = this.vfs.filemeta(path).get("scriptInfo") as ScriptInfo;
137137
if (scriptInfo && scriptInfo.isRootFile) {

0 commit comments

Comments
 (0)