pure-index
Advanced tools
Comparing version 0.0.56 to 0.0.57
@@ -5,4 +5,4 @@ import meow from 'meow'; | ||
Options | ||
--entry, -e path to the package index file. relative to the package directory | ||
--collect-usages, -u outputs a list of all unique uses of the package | ||
--entry, -e <path> path to the package index file. relative to the package directory | ||
--collect-usages, -u <pkg-name> outputs a list of all unique uses of the package | ||
`, { | ||
@@ -9,0 +9,0 @@ importMeta: import.meta, |
import { lilconfig } from 'lilconfig'; | ||
import { join } from 'node:path'; | ||
import { cli } from './cli.js'; | ||
@@ -8,3 +9,3 @@ import { getRepoRoot } from '../shared/index.js'; | ||
dir: '', | ||
entry: 'index.ts', | ||
entry: join('src', 'index.ts'), | ||
exclude: ['node_modules'], | ||
@@ -11,0 +12,0 @@ extensions: ['ts', 'tsx'], |
@@ -31,4 +31,4 @@ import { existsSync } from 'node:fs'; | ||
printParseError(pkg.path); | ||
process.exit(1); | ||
} | ||
// @ts-expect-error | ||
for (const node of ast.body) { | ||
@@ -35,0 +35,0 @@ if (node.type === 'ExportNamedDeclaration') { |
{ | ||
"name": "pure-index", | ||
"type": "module", | ||
"version": "0.0.56", | ||
"version": "0.0.57", | ||
"description": "Utility for monorepos. It helps to clean your packages of unused exports with ease", | ||
@@ -6,0 +6,0 @@ "main": "./dist/api/index.js", |
26595
651