Update build script

This commit is contained in:
Ron Buckton committed 2018-01-23 10:27:20 -08:00
1 parent 87de5ffb5c
commit 774ed0c47a
4 files changed
+8 -6

No files matched your search

+2 -2
View File
@@ -25,9 +25,9 @@ install:
- npm uninstall tslint --no-save
- npm install
- if [ "$TRAVIS_NODE_VERSION" = "6" ]; then
npm uninstall typemock @typescript/vfs-om @typescript/vfs @typescript/vfs-path @typescript/vfs-core @typescript/vfs-errors --no-save;
npm uninstall typemock @typescript/vfs @typescript/vfs-path @typescript/vfs-core @typescript/vfs-errors --no-save;
npm run build:private-packages;
npm install file:scripts/typemock file:scripts/vfs-om file:scripts/vfs file:scripts/vfs-path --no-save;
npm install file:scripts/typemock file:scripts/vfs file:scripts/vfs-path --no-save;
fi
cache:
+2 -2
View File
@@ -12,9 +12,9 @@ npm install
# Node 6 uses an older version of npm that does not symlink a package with a "file:" reference
if [ "$1" = "6" ]; then
npm uninstall typemock @typescript/vfs-om @typescript/vfs @typescript/vfs-path @typescript/vfs-core @typescript/vfs-errors --no-save;
npm uninstall typemock @typescript/vfs @typescript/vfs-path @typescript/vfs-core @typescript/vfs-errors --no-save;
npm run build:private-packages;
npm install file:scripts/typemock file:scripts/vfs-om file:scripts/vfs file:scripts/vfs-path --no-save;
npm install file:scripts/typemock file:scripts/vfs file:scripts/vfs-path --no-save;
fi
npm update
+3 -1
View File
@@ -233,7 +233,9 @@ namespace compiler {
vpath.combine(project, "tsconfig.json");
}
else {
[project] = host.vfs.scanSync(".", "ancestors-or-self", { accept: (path, stats) => stats.isFile() && host.vfs.stringComparer(vpath.basename(path), "tsconfig.json") === 0 });
[project] = host.vfs.scanSync(".", "ancestors-or-self", {
accept: (path: string, stats: vfs.FileSystem) => stats.isFile() && host.vfs.stringComparer(vpath.basename(path), "tsconfig.json") === 0
});
}
if (project) {
+1 -1
View File
@@ -131,7 +131,7 @@ namespace Harness.LanguageService {
public getFilenames(): string[] {
const fileNames: string[] = [];
this.vfs.scanSync("/", "descendants-or-self", {
accept: (path, stats) => {
accept: (path: string, stats: vfs.FileSystem) => {
if (stats.isFile()) {
const scriptInfo = this.vfs.filemeta(path).get("scriptInfo") as ScriptInfo;
if (scriptInfo && scriptInfo.isRootFile) {