atom-js-transpiler

raw JSON →
0.5.0 verified Fri May 01 auth: no javascript abandoned

A utility to centralize transpilation across multiple Atom packages. It transpiles source files from a 'src' directory (supporting async/await, JSX, ES6, and type annotations) into a 'lib' directory. Version 0.5.0 is the last release; the package appears unmaintained since 2016. Differentiator: simple CLI tool for Atom package developers wanting consistent transpilation without per-package configuration. Note: relies on Babel under the hood, but is tightly coupled to Atom's package structure.

error Error: Cannot find module 'atom-js-transpiler'
cause Trying to require it as a Node module instead of running as a CLI command.
fix
Run via npm script: "prepublish": "atom-js-transpile" (or specify full path).
error sh: atom-js-transpile: command not found
cause The package is not installed locally or globally.
fix
Install as devDependency: npm install --save-dev atom-js-transpiler
deprecated This package is no longer maintained. Atom's package ecosystem has evolved, and many packages now use alternative build tools.
fix Consider using Babel directly or a modern build system like Webpack or Rollup.
breaking Requires source files in 'src/' and output in 'lib/'. Deviation from this structure will cause failures.
fix Ensure source files are in a 'src' directory and that 'lib' is writable.
gotcha The tool runs on prepublish, which may not trigger correctly in all npm workflows (especially with npm@5+).
fix Use 'prepare' instead of 'prepublish' in package.json scripts.
npm install atom-js-transpiler
yarn add atom-js-transpiler
pnpm add atom-js-transpiler

Add as a prepublish script in package.json to automatically transpile src/ to lib/ before publishing.

{
  "scripts": {
    "prepublish": "node_modules/.bin/atom-js-transpile"
  }
}