Comparing version 2.1.2 to 3.0.0-next.1
#!/usr/bin/env node | ||
import { parse, find, findAll } from '../dist/index.js'; | ||
import * as process from 'process'; | ||
import { parse, find, findAll } from '../src/index.js'; | ||
import * as process from 'node:process'; | ||
@@ -70,5 +70,5 @@ const HELP_TEXT = ` | ||
console.error(err.message, err); | ||
// eslint-disable-next-line no-process-exit | ||
// eslint-disable-next-line n/no-process-exit | ||
process.exit(1); | ||
} | ||
); |
{ | ||
"name": "tsconfck", | ||
"version": "2.1.2", | ||
"version": "3.0.0-next.1", | ||
"description": "A utility to work with tsconfig.json without typescript", | ||
@@ -8,5 +8,5 @@ "license": "MIT", | ||
"files": [ | ||
"dist", | ||
"bin", | ||
"src", | ||
"types", | ||
"README.md", | ||
@@ -17,17 +17,14 @@ "LICENSE", | ||
"type": "module", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"bin": "bin/tsconfck.js", | ||
"types": "dist/index.d.ts", | ||
"types": "types/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"./package.json": "./package.json" | ||
"types": "./types/index.d.ts", | ||
"import": "./src/index.js" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dominikg/tsconfck.git" | ||
"url": "git+https://github.com/dominikg/tsconfck.git", | ||
"directory": "packages/tsconfck" | ||
}, | ||
@@ -42,5 +39,5 @@ "keywords": [ | ||
}, | ||
"homepage": "https://github.com/dominikg/tsconfck/tree/main/#readme", | ||
"homepage": "https://github.com/dominikg/tsconfck/tree/main/packages/tsconfck#readme", | ||
"peerDependencies": { | ||
"typescript": "^4.3.5 || ^5.0.0" | ||
"typescript": "^5.0.0" | ||
}, | ||
@@ -53,61 +50,19 @@ "peerDependenciesMeta": { | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.6.6", | ||
"@commitlint/config-conventional": "^17.6.6", | ||
"@tsconfig/node14": "^14.1.0", | ||
"@types/node": "^20.4.0", | ||
"@typescript-eslint/eslint-plugin": "^5.61.0", | ||
"@typescript-eslint/parser": "^5.61.0", | ||
"c8": "^8.0.0", | ||
"chalk": "^5.3.0", | ||
"conventional-changelog-cli": "^3.0.0", | ||
"enquirer": "^2.3.6", | ||
"esbuild": "^0.18.11", | ||
"eslint": "^8.44.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-markdown": "^3.0.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"execa": "^7.1.1", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.2.3", | ||
"minimist": "^1.2.8", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^3.0.0", | ||
"rimraf": "^5.0.1", | ||
"semver": "^7.5.3", | ||
"@tsconfig/node18": "^18.2.0", | ||
"esbuild": "^0.19.1", | ||
"tiny-glob": "^0.2.9", | ||
"tsm": "^2.3.0", | ||
"tsup": "^6.7.0", | ||
"typescript": "^5.1.6", | ||
"uvu": "^0.5.6", | ||
"watchlist": "^0.3.1" | ||
"vitest": "^0.34.1" | ||
}, | ||
"lint-staged": { | ||
"*.{cjs,js,ts,md}": [ | ||
"eslint --fix", | ||
"prettier --write" | ||
] | ||
}, | ||
"packageManager": "pnpm@8.6.6", | ||
"engines": { | ||
"node": "^14.13.1 || ^16 || >=18" | ||
"node": "^18 || >=20" | ||
}, | ||
"scripts": { | ||
"dev": "pnpm build:ci --watch src", | ||
"build:ci": "rimraf dist && tsup-node src/index.ts --format esm,cjs --no-splitting --target node14.13.1", | ||
"build": "pnpm build:ci --dts --sourcemap && node scripts/generate-api-docs.js", | ||
"test": "node --experimental-loader tsm node_modules/uvu/bin.js tests -i fixtures -i temp -i util/", | ||
"test:watch": "pnpm test; watchlist tests src -- pnpm test", | ||
"test:coverage": "c8 --include=src --clean pnpm test", | ||
"test:report": "c8 report --reporter=text-lcov > coverage/coverage.lcov", | ||
"lint": "eslint --ignore-path .gitignore '**/*.{cjs,js,ts,md}'", | ||
"lint:fix": "pnpm lint --fix", | ||
"format": "prettier --ignore-path .gitignore '**/*.{cjs,js,ts,md}' --check", | ||
"format:fix": "pnpm format --write", | ||
"fixup": "run-s lint:fix format:fix", | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -l tsconfck", | ||
"release": "node scripts/release.js", | ||
"release:dry": "pnpm release --dry", | ||
"release:next": "pnpm release --next" | ||
"check:publint": "publint --strict", | ||
"check:types": "tsc --noEmit", | ||
"test": "vitest run", | ||
"test:coverage": "vitest run --coverage", | ||
"test:watch": "vitest", | ||
"dts-buddy": "dts-buddy" | ||
} | ||
} |
@@ -91,7 +91,7 @@ # tsconfck | ||
const root = '.'; | ||
const tsConfigPaths = new Set([ | ||
const tsconfigPaths = new Set([ | ||
...(await findAll(root, { skip: (dir) => dir === 'node_modules' || dir === '.git' })) | ||
]); | ||
const cache = new Map(); | ||
const parseOptions = { cache, root, tsConfigPaths }; | ||
const parseOptions = { cache, root, tsconfigPaths }; | ||
// these calls use minimal fs | ||
@@ -104,3 +104,3 @@ const fooResult = await parse('src/foo.ts', parseOptions); | ||
> You are responsible for updating tsConfigPaths if tsconfig files are added/removed on disk during its lifetime. | ||
> You are responsible for updating tsconfigPaths if tsconfig files are added/removed on disk during its lifetime. | ||
@@ -107,0 +107,0 @@ ### error handling |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
5
5
1
56235
15
1537
1