slicejs-cli 1.0.13 → 1.0.14
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/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slicejs-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "Command client for developing web applications with Slice.js",
|
|
5
5
|
"main": "client.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
-
"postinstall": "node
|
|
8
|
+
"postinstall": "node post.js"
|
|
9
9
|
},
|
|
10
10
|
"keywords": [
|
|
11
11
|
"framework",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
import fs from 'fs';
|
|
3
|
+
import { fileURLToPath } from 'url';
|
|
3
4
|
import path from 'path';
|
|
4
|
-
console.log("prueba")
|
|
5
|
-
const __dirname = path.dirname(new URL(import.meta.url).pathname);
|
|
6
5
|
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = path.dirname(__filename);
|
|
7
8
|
// Retrocede un directorio desde __dirname para llegar al directorio principal del proyecto
|
|
8
9
|
const projectPackageJsonPath = path.resolve(__dirname, 'package.json');
|
|
9
10
|
|