Skip to content

Commit d0e0501

Browse files
authored
Merge pull request #21 from NativeScript/aot
ignore *.aot.ts files
2 parents 17ed5d6 + f90f839 commit d0e0501

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-dev-typescript",
3-
"version": "0.3.3",
3+
"version": "0.3.4",
44
"description": "TypeScript support for NativeScript projects. Install using `tns install typescript`.",
55
"scripts": {
66
"test": "exit 0",

postinstall.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ function createTsconfig() {
3434
noEmitOnError: true,
3535
};
3636

37-
tsconfig.exclude = ['node_modules', 'platforms'];
37+
tsconfig.exclude = ['node_modules', 'platforms', "**/*.aot.ts"];
3838

39-
if (!fs.existsSync(tsconfigPath)) {
40-
fs.appendFileSync(tsconfigPath, JSON.stringify(tsconfig, null, 4));
39+
if (!fs.existsSync(tsconfigPath)) {
40+
fs.appendFileSync(tsconfigPath, JSON.stringify(tsconfig, null, 4));
4141
}
4242
}
4343

@@ -49,15 +49,15 @@ function getProjectTypeScriptVersion() {
4949

5050
return (jsonContent.dependencies && jsonContent.dependencies.typescript)
5151
|| (jsonContent.devDependencies && jsonContent.devDependencies.typescript);
52-
} catch(err) {
52+
} catch (err) {
5353
console.error(err);
5454
return null;
5555
}
5656
}
5757

5858
function installTypescript() {
5959
var installedTypeScriptVersion = getProjectTypeScriptVersion();
60-
if(installedTypeScriptVersion) {
60+
if (installedTypeScriptVersion) {
6161
console.log("Project already targets TypeScript " + installedTypeScriptVersion);
6262
} else {
6363
require('child_process').exec('npm install --save-dev typescript', { cwd: projectDir }, function (err, stdout, stderr) {

0 commit comments

Comments
 (0)