npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tarojs-cli-convertor

v4.1.10

Published

cli tool for taro-convert

Readme

小程序转Taro工具

官方@tarojs/cli-convertor的修复版本,主要修复以下问题:

一、taroize is not a function

故障原因

官方提交统一各包的构建产物目录为 dist,遗漏了一块地方:import * as taroize from '@tarojs/taroize',需要将其修改成import parse from '@tarojs/taroize',这是具体 diff地址

解决方案

将文件 packages/taro-cli-convertor/src/index.ts 中的 import * as taroize from '@tarojs/taroize',修改成 import parse from '@tarojs/taroize'

二、Scope#references is not available in Babel 8. Use Scope#referencesSet instead

故障原因

Babel官方在 7.26.10 以上的版本加入了 Babel 8,导致在npx运行过程中,运行到了 Babel 8,而 cli-convertor 又没锁定版本 "@babel/traverse": "^7.24.1"",最终安装的是7.28.4的@babel/traverse,导致的问题。

function resetScope(scope: Scope) {
  if (!process.env.BABEL_8_BREAKING) {
    // @ts-expect-error(Babel 7 vs Babel 8)
    scope.references = Object.create(null);
    // @ts-expect-error(Babel 7 vs Babel 8)
    scope.uids = Object.create(null);
  } else if (scope.path.type === "Program") {
    scope.referencesSet = new Set();
    scope.uidsSet = new Set();
  }

  scope.bindings = Object.create(null);
  scope.globals = Object.create(null);
}
get references() {
  throw new Error(
      "Scope#references is not available in Babel 8. Use Scope#referencesSet instead.",
  );
}

解决方案

cli-convertor@babel/traverse 锁定版本:"@babel/traverse": "~7.26.10"