Skip to content

support runtime in devDep#8888

Closed
farfromrefug wants to merge 1 commit into
NativeScript:masterfrom
farfromrefug:patch-1
Closed

support runtime in devDep#8888
farfromrefug wants to merge 1 commit into
NativeScript:masterfrom
farfromrefug:patch-1

Conversation

@farfromrefug
Copy link
Copy Markdown
Collaborator

Right now it seems to be used for snapshot
This is one part of more global fix for snapshots which are broken with latest webpack

Right now it seems to be used for snapshot
@cla-bot cla-bot Bot added the cla: yes label Sep 24, 2020
if (projectPackageJSON["nativescript"]) {
version = projectPackageJSON["nativescript"]["tns-android"]["version"];
} else {
version = (projectPackageJSON["devDependencies"]["tns-android"] || projectPackageJSON["devDependencies"]["@nativescript/android"]).replace(/[~^]/, '');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tricky part with this is that it could be a path to a tgz file too. The CLI tries to read from the installed runtimes package.json in node_modules if that's the case, but it's not "fool-proof".

I guess it's fine for now - just something we need to keep in mind.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right fdont like it either. Does not support latest or * too....

@NathanWalker
Copy link
Copy Markdown
Contributor

Closing as confirmed operational and not pursuing snapshots.

@farfromrefug
Copy link
Copy Markdown
Collaborator Author

Again total nonsense... Either remove all the snapshot code now or accept fixes

@NathanaelA

This comment was marked as abuse.

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.

4 participants