slicejs-cli 2.0.9 → 2.0.10

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/post.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slicejs-cli",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "Command client for developing web applications with Slice.js framework",
5
5
  "main": "client.js",
6
6
  "scripts": {
package/post.js CHANGED
@@ -27,6 +27,9 @@ fs.promises.access(projectPackageJsonPath, fs.constants.F_OK)
27
27
  projectPackageJson.scripts['run'] = 'node api/index.js';
28
28
  projectPackageJson.scripts['slice:start'] = 'node api/index.js';
29
29
  projectPackageJson.scripts['development'] = 'node api/index.js';
30
+
31
+ // add type module
32
+ projectPackageJson.type = 'module';
30
33
 
31
34
  // Escribe el nuevo contenido en el package.json del proyecto
32
35
  return fs.promises.writeFile(projectPackageJsonPath, JSON.stringify(projectPackageJson, null, 2), 'utf8');