slicejs-cli 1.0.31 → 1.0.33

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.
@@ -1,7 +1,6 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
3
  import Validations from '../Validations.js';
4
- import formatComponentCode from '../format.js';
5
4
  const __dirname = path.dirname(new URL(import.meta.url).pathname);
6
5
 
7
6
 
@@ -64,7 +63,6 @@ function modifyComponent(componentName, category, addProperties, removePropertie
64
63
  });
65
64
 
66
65
  componentContent = updateComponentProps(componentContent, existingProperties);
67
- componentContent = formatComponentCode(componentContent);
68
66
  fs.writeFileSync(componentPath, componentContent);
69
67
  console.log(`Component '${componentName}' modified successfully.`);
70
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slicejs-cli",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "Command client for developing web applications with Slice.js",
5
5
  "main": "client.js",
6
6
  "scripts": {
package/post.js CHANGED
@@ -20,7 +20,8 @@ fs.promises.readFile(projectPackageJsonPath, 'utf8')
20
20
  projectPackageJson.scripts['slice:create'] = 'node node_modules/slicejs-cli/client.js create';
21
21
  projectPackageJson.scripts['slice:modify'] = 'node node_modules/slicejs-cli/client.js modify';
22
22
  projectPackageJson.scripts['slice:list'] = 'node node_modules/slicejs-cli/client.js list';
23
-
23
+ projectPackageJson.scripts['slice:delete'] = 'node node_modules/slicejs-cli/client.js delete';
24
+
24
25
  // Escribe el nuevo contenido en el package.json del proyecto
25
26
  return fs.promises.writeFile(projectPackageJsonPath, JSON.stringify(projectPackageJson, null, 2), 'utf8');
26
27
  })