{"id":27476,"library":"tscraft","title":"tscraft","description":"A TypeScript transpiler and bundler with minimal dependencies. Currently at version 0.0.1 with slow release cadence. Targets Node >=8.5.0. Differentiates itself as a lightweight alternative to larger build tools like webpack or rollup, though still in early development with no documentation or community adoption.","status":"active","version":"0.0.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install tscraft","lang":"bash","label":"npm"},{"cmd":"yarn add tscraft","lang":"bash","label":"yarn"},{"cmd":"pnpm add tscraft","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core TypeScript parsing dependency","package":"@tscraft/parser","optional":false},{"reason":"Used for source map manipulation","package":"magic-string","optional":true}],"imports":[{"note":"ESM-only; no CommonJS support. Version 0.0.1 exports a default function.","wrong":"const tscraft = require('tscraft')","symbol":"default","correct":"import tscraft from 'tscraft'"},{"note":"Named export available only in ESM.","wrong":"const { transpile } = require('tscraft')","symbol":"transpile","correct":"import { transpile } from 'tscraft'"},{"note":"Named export, requires ESM.","wrong":"const { bundle } = require('tscraft')","symbol":"bundle","correct":"import { bundle } from 'tscraft'"}],"quickstart":{"code":"import tscraft from 'tscraft';\nimport { transpile, bundle } from 'tscraft';\n\nconst code = `const x: number = 1;`;\n\n// Transpile TypeScript to JavaScript\nconst result = transpile(code, { target: 'es2015' });\nconsole.log(result.code);\n\n// Bundle multiple files\nconst bundleResult = bundle({\n  entry: 'src/index.ts',\n  output: 'dist/bundle.js'\n});\nconsole.log(bundleResult);\n\n// Use default export (same as transpile)\nconst defaultResult = tscraft(code, { target: 'es2020' });","lang":"typescript","description":"Shows transpile and bundle usage with type annotations."},"warnings":[{"fix":"Use ESM imports with 'import' syntax and ensure your project is configured for ESM (type: 'module' in package.json).","message":"No CommonJS (require) support; all imports must be ESM.","severity":"breaking","affected_versions":">=0.0.1"},{"fix":"Prefer import { transpile } from 'tscraft' over import tscraft from 'tscraft'.","message":"Default export may be renamed in future versions; use named exports for stability.","severity":"deprecated","affected_versions":">=0.0.1"},{"fix":"Upgrade Node.js to version 8.5.0 or later.","message":"Engine requirement Node >=8.5.0 may cause issues on older systems.","severity":"gotcha","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install tscraft' and ensure project is ESM-enabled (type: 'module' in package.json).","cause":"Package not installed or ESM import used in CJS context.","error":"Cannot find module 'tscraft'"},{"fix":"Add 'type': 'module' to package.json or rename file to .mjs.","cause":"Attempting to use ESM 'import' in a CommonJS file without ESM support.","error":"SyntaxError: Unexpected token 'export'"},{"fix":"Use named imports: import { transpile } from 'tscraft'.","cause":"Using default import incorrectly; default export may be an object.","error":"TypeError: tscraft is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}