FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: fix definition files so nativescript-cloud can be successfully built by Fatme · Pull Request #5057 · NativeScript/nativescript-cli · GitHub

fix: fix definition files so nativescript-cloud can be successfully built - #5057

Merged
Fatme merged 1 commit into
masterfrom
fatme/fix-xcode-definitions
Oct 8, 2019
Merged

fix: fix definition files so nativescript-cloud can be successfully built#5057
Fatme merged 1 commit into
masterfrom
fatme/fix-xcode-definitions

Conversation

Fatme commented Oct 8, 2019

Copy link
Copy Markdown
Contributor

Currently nativescript-cloud cannot be built with latest master branch of CLI due to the following errors:

node_modules/nativescript/lib/definitions/project.d.ts(476,96): error TS2503: Cannot find namespace 'IXcode'.
node_modules/nativescript/lib/definitions/project.d.ts(476,165): error TS2503: Cannot find namespace 'IXcode'.
node_modules/nativescript/lib/definitions/project.d.ts(479,128): error TS2503: Cannot find namespace 'IXcode'.
node_modules/nativescript/lib/definitions/project.d.ts(480,99): error TS2503: Cannot find namespace 'IXcode'.

The issue happens as IXcode interface is already used from project.d.ts file. As nativescript-cloud lib generates references.d.ts file with references to all .d.ts files from NativeScript CLI, we need a separate .d.ts file for IXcode interface. This way, it will be included in the generated references.d.ts file and cloud-lib will be successfully built.

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

…uilt

Currently `nativescript-cloud` cannot be built with latest master branch of CLI due to the following errors:
```
node_modules/nativescript/lib/definitions/project.d.ts(476,96): error TS2503: Cannot find namespace 'IXcode'.
node_modules/nativescript/lib/definitions/project.d.ts(476,165): error TS2503: Cannot find namespace 'IXcode'.
node_modules/nativescript/lib/definitions/project.d.ts(479,128): error TS2503: Cannot find namespace 'IXcode'.
node_modules/nativescript/lib/definitions/project.d.ts(480,99): error TS2503: Cannot find namespace 'IXcode'.
```

The issue happens as `IXcode` interface is already used from project.d.ts file. As `nativescript-cloud` lib generates `references.d.ts` file with references to all `.d.ts` files from NativeScript CLI, we need a separate `.d.ts`  file for `IXcode` interface. This way, it will be included in the generated `references.d.ts` file and cloud-lib will be successfully built.
cla-bot Bot added the cla: yes label Oct 8, 2019
Fatme merged commit 08dd3b1 into master Oct 8, 2019
Fatme deleted the fatme/fix-xcode-definitions branch October 8, 2019 07:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL