NativeScript / NativeScript/nativescript-cli

Updating package.json platform versions, doesn't work.

未关闭
#5,422 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

Environment

  • CLI: 7.x

Describe the bug
Basically because we are using NPM now to manage the dependancies; it will store a copy of the runtime in @nativescript/ios or @nativescript/android if you bump the version of the package.json file; it will bump those copies; but the copy that we create in the "platforms/ios" or "platforms/android" remains whatever was their before.

Expected behavior
That I would have the version in the package.json file.

Additional context
We might need a post install script to clean the platforms/ios or platforms/android folder on install of the runtimes, so that way the next tns command will see the platforms folder empty and re-install the platforms from the npm version that was installed.

Possible corner case is if the CLI installs the platforms version before doing a npm i; we need to verify this isn't the case.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先跟踪 package.json 如何更新 @nativescript/ios 和 @nativescript/android 中的运行时副本,然后将其与现有的 platforms/ios 和 platforms/android 处理方式进行比较。确认 CLI 是否在 npm i 之前安装平台,并评估建议的安装后清理。完成的标准是平台文件夹使用从 package.json 安装的版本。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
cli, mobile-dev
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。