UNPKG

npmize

Version:

Let's create an npm package without worrying about anything.

16 lines (15 loc) 510 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getImports = getImports; exports.getRequires = getRequires; const node_1 = require("./node"); function getImports(parsed) { return [ ...(0, node_1.TSImportType)(parsed), ...(0, node_1.CallExpressionImport)(parsed), ...(0, node_1.ImportDeclaration_ExportNamedDeclaration_ExportAllDeclaration)(parsed), ]; } function getRequires(parsed) { return (0, node_1.CallExpressionRequire)(parsed); }