dependency-detective 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
2
|
import { program } from 'commander';
|
|
4
|
-
|
|
3
|
+
import { createRequire } from 'module';
|
|
4
|
+
const require = createRequire(import.meta.url);
|
|
5
|
+
const packageJson = require('./package.json');
|
|
5
6
|
import { analyzeProject } from "./src/analyzer.js"
|
|
6
7
|
import 'dotenv/config';
|
|
7
8
|
|
|
8
|
-
|
|
9
9
|
program
|
|
10
10
|
.version(packageJson.version)
|
|
11
11
|
.description('Analyzes your project dependencies to identify unused packages, security risks, and suggest alternatives')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dependency-detective",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Analyzes your project's dependencies, identifies unused ones, forecasts potential security risks, and suggests better alternatives",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|