Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-bridge-js

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-bridge-js

## 安装

  • 1.2.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

git-bridge-js

安装

npm install git-bridge-js -g --unsafe-perm=true

在 Ubuntu 下安装,通过加 --unsafe-perm=true 字段,避免 esbuild 安装中文件夹的权限问题。

Changelog

1.2.0

  • gjs check --dry-run 只打印命令而不执行
  • gjs build 现在会读 git_bridge_js.yaml 里的 target
  • gjs build 现在默认是 --module esm
  • module 现在是 esm | cjs | es5 | es5andesm,接下来分编译器讨论:
    • compiler = esbuild 时
      • esm 和 cjs 都会使用 target = es2017
      • es5 会先用 esbuild 打一个 es2017 的 cjs,然后用 babel 转到 es5
        这一般需要包的 dependencies 里添加一个 core-js
    • compiler = tsc 时
      • esm 和 cjs 都会使用 target = es2017
      • es5 就是直接 --target es5 传给 tsc
    • es5andesm = esm + es5
  • gjs build --no-types 不生成类型,默认会开启 --disable-clean
  • git_bridge_js.yaml 配置更改
    • 删除了 generateExports
    • 删除了 bundleBabelRuntime
    • metaFilemetafile
    • 删除了 module.iife
    • 删除了 nodeBuiltinMode
    • 增加了 platform: node | browser,此选项影响 esbuild 的 platform 选项,默认是 browser
    • target 可以填 es5,但是只对 commonjs 有效,其他值:es2017, esnext

FAQs

Package last updated on 06 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc