From 792df239f0bc0a773de6ba432e8524eb485fec14 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Mon, 28 Nov 2016 18:24:30 +0200 Subject: [PATCH 1/2] ignore *.aot.ts files --- postinstall.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/postinstall.js b/postinstall.js index b2289e2..2724dd0 100644 --- a/postinstall.js +++ b/postinstall.js @@ -34,10 +34,10 @@ function createTsconfig() { noEmitOnError: true, }; - tsconfig.exclude = ['node_modules', 'platforms']; + tsconfig.exclude = ['node_modules', 'platforms', "**/*.aot.ts"]; - if (!fs.existsSync(tsconfigPath)) { - fs.appendFileSync(tsconfigPath, JSON.stringify(tsconfig, null, 4)); + if (!fs.existsSync(tsconfigPath)) { + fs.appendFileSync(tsconfigPath, JSON.stringify(tsconfig, null, 4)); } } @@ -49,7 +49,7 @@ function getProjectTypeScriptVersion() { return (jsonContent.dependencies && jsonContent.dependencies.typescript) || (jsonContent.devDependencies && jsonContent.devDependencies.typescript); - } catch(err) { + } catch (err) { console.error(err); return null; } @@ -57,7 +57,7 @@ function getProjectTypeScriptVersion() { function installTypescript() { var installedTypeScriptVersion = getProjectTypeScriptVersion(); - if(installedTypeScriptVersion) { + if (installedTypeScriptVersion) { console.log("Project already targets TypeScript " + installedTypeScriptVersion); } else { require('child_process').exec('npm install --save-dev typescript', { cwd: projectDir }, function (err, stdout, stderr) { From f90f83969af8e63fb731a08a38b5ff5bac9ad59d Mon Sep 17 00:00:00 2001 From: Hristo Deshev Date: Wed, 30 Nov 2016 15:40:38 +0200 Subject: [PATCH 2/2] Version bump: 0.3.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d1d6100..ee94e62 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nativescript-dev-typescript", - "version": "0.3.3", + "version": "0.3.4", "description": "TypeScript support for NativeScript projects. Install using `tns install typescript`.", "scripts": { "test": "exit 0",