@nushell/linux-x64 0.78.0 → 0.79.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +17 -1
  2. package/bin/nu +0 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -12,13 +12,29 @@ To install `nu` by npm, simply run: `npm i -g nushell`, then you can run `nu` to
12
12
  1. If you got some error like 'Error: Couldn't find application binary inside node_modules...' while running `nu` or 'No matching version found for nushell...' while installation, please specify the registry and try to install it again: `npm i -g nushell --registry https://registry.npmjs.com`.
13
13
  2. The **npm** package for `nushell` currently contains only the `nu` binary, and the official plugins were not included, if you need the full version, please build it from source or [download the packages from here](https://github.com/nushell/nushell/releases)
14
14
 
15
+ ## FAQ
16
+
17
+ 1. Why is `Nushell` be published to `npm` even? There's nothing JavaScript about Nushell (that I know of?), Isn't npm...for js packages?
18
+
19
+ The direct cause of publishing `Nushell` to `npm` was from `Nushell`'s user feedback: "I'd like to run nu scripts in environments that only have access to npm for installing dependencies.". In fact, we have encountered many times such situation with network limitations too, and publish to `npm` is a good approach, especially for a container environment that doesn't have `winget` or `brew` installed.
20
+
21
+ `npm` may be thought as typically for js packages, however, nowadays lots of binaries written by `rust` or `go` have been published to npm, such as `git-cliff`, `lefthook`, etc. they are all dev tools, and `nushell` is an engine that could power lots of develop involved scripts, and publish it to `npm` will make it easier to access especially for JS related projects, as they already have `npm` been installed.
22
+
23
+ 2. Will the npm version of `nu` I installed be bloated?
24
+
25
+ No. You can read that from the [base npm `package.json`](https://github.com/hustcer/nu-to-npm/blob/main/npm/app/package.json) and the [platform specific `package.json`](https://github.com/hustcer/nu-to-npm/blob/main/npm/package.json.tmpl), only the packages in `dependencies` will be installed, and the dependencies will be installed is **0**, for `optionalDependencies` that means `npm` will choose the exact one package according to your `os` and `cpu` arch. For example, I'm using a mac with Intel cpu inside and `npm` will install only `@nushell/darwin-x64` for me and nothing else. See? `npm` choose the right package for me with just one command.
26
+
27
+ 3. Will the npm version of `nu` I installed has JS performance issue?
28
+
29
+ Well, you can read that from the [source here](https://github.com/hustcer/nu-to-npm/blob/main/npm/app/src/index.ts). All node does is simply call the `nu` binary itself, and nothing more.
30
+
15
31
  ---
16
32
 
17
33
  ## 将 Nushell 发布到 NPM 仓库
18
34
 
19
35
  本仓库的唯一作用就是将 [Nushell](https://github.com/nushell/nushell) 官方发布的二进制文件原封不动地发布到 `NPM` 仓库,方便大家通过 `npm` 安装使用。
20
36
 
21
- 对于 `nushell` **npm** 包的问题(诸如安装、格式等)可以 [在此](https://github.com/hustcer/nu-to-npm/issues) 提 Issue,至于 `nu` 二进制文件的问题请前往 [此处](https://github.com/nushell/nushell/issues) 提 Issue。
37
+ 对于 `nushell` **npm** 包的问题(诸如安装、格式等)可以 [在此](https://github.com/hustcer/nu-to-npm/issues) 提 Issue,至于 `nu` 二进制文件的问题请前往 [官方仓库](https://github.com/nushell/nushell/issues) 提 Issue。
22
38
 
23
39
  通过 `npm` 安装 **nushell** 只需要执行: `npm i -g nushell` 即可,然后你可以通过 `nu` 命令创建一个新的会话。
24
40
 
package/bin/nu CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nushell/linux-x64",
3
- "version": "0.78.0",
3
+ "version": "0.79.1",
4
4
  "description": "Publish the official nushell binary to npm by @hustcer",
5
5
  "repository": {
6
6
  "type": "git",