prodex 1.0.2 → 1.0.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/bin/prodex.js +3 -2
- package/dist/bin/prodex.js +3 -2
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/bin/prodex.js
CHANGED
|
@@ -7,11 +7,12 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
7
7
|
const __dirname = path.dirname(__filename);
|
|
8
8
|
|
|
9
9
|
const devPath = path.resolve(__dirname, "../src/index.js");
|
|
10
|
-
const distPath = path.resolve(__dirname, "../dist/index.js");
|
|
10
|
+
const distPath = path.resolve(__dirname, "../dist/src/index.js");
|
|
11
11
|
|
|
12
|
+
// prefer dist in published package
|
|
12
13
|
const entry = fs.existsSync(distPath) ? distPath : devPath;
|
|
13
14
|
|
|
14
|
-
//
|
|
15
|
+
// convert to file:// URL for cross-platform ESM loading
|
|
15
16
|
const entryUrl = pathToFileURL(entry).href;
|
|
16
17
|
|
|
17
18
|
import(entryUrl).then(({ default: startProdex }) => startProdex());
|
package/dist/bin/prodex.js
CHANGED
|
@@ -7,11 +7,12 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
7
7
|
const __dirname = path.dirname(__filename);
|
|
8
8
|
|
|
9
9
|
const devPath = path.resolve(__dirname, "../src/index.js");
|
|
10
|
-
const distPath = path.resolve(__dirname, "../dist/index.js");
|
|
10
|
+
const distPath = path.resolve(__dirname, "../dist/src/index.js");
|
|
11
11
|
|
|
12
|
+
// prefer dist in published package
|
|
12
13
|
const entry = fs.existsSync(distPath) ? distPath : devPath;
|
|
13
14
|
|
|
14
|
-
//
|
|
15
|
+
// convert to file:// URL for cross-platform ESM loading
|
|
15
16
|
const entryUrl = pathToFileURL(entry).href;
|
|
16
17
|
|
|
17
18
|
import(entryUrl).then(({ default: startProdex }) => startProdex());
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prodex",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Unified Project Indexer & Dependency Extractor for Laravel + React + Node stacks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"scripts": {
|
|
30
30
|
"clean": "rm -rf dist",
|
|
31
|
-
"build": "npm run clean &&
|
|
31
|
+
"build": "npm run clean && node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && cp -r src bin package.json README.md LICENSE dist/",
|
|
32
32
|
"prepare": "npm run build"
|
|
33
33
|
},
|
|
34
34
|
"author": "emxhive",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prodex",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Unified Project Indexer & Dependency Extractor for Laravel + React + Node stacks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"scripts": {
|
|
30
30
|
"clean": "rm -rf dist",
|
|
31
|
-
"build": "npm run clean &&
|
|
31
|
+
"build": "npm run clean && node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && cp -r src bin package.json README.md LICENSE dist/",
|
|
32
32
|
"prepare": "npm run build"
|
|
33
33
|
},
|
|
34
34
|
"author": "emxhive",
|