@pulse-editor/cli 0.1.1-beta.14 → 0.1.1-beta.15

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.
@@ -23,6 +23,19 @@ export default function Build({ cli }) {
23
23
  });
24
24
  }
25
25
  }
26
+ // Create node_modules/.pulse/server directory
27
+ if (!fs.existsSync('node_modules/.pulse/server')) {
28
+ if (process.platform === 'win32') {
29
+ await execa('mkdir node_modules\\.pulse\\server', {
30
+ shell: true,
31
+ });
32
+ }
33
+ else {
34
+ await execa('mkdir -p node_modules/.pulse/server', {
35
+ shell: true,
36
+ });
37
+ }
38
+ }
26
39
  if (process.platform === 'win32') {
27
40
  await execa('xcopy /E /I node_modules\\@pulse-editor\\cli\\dist\\lib\\server node_modules\\.pulse\\server', {
28
41
  shell: true,
@@ -22,6 +22,19 @@ export default function Dev({ cli }) {
22
22
  });
23
23
  }
24
24
  }
25
+ // Create node_modules/.pulse/server directory
26
+ if (!fs.existsSync('node_modules/.pulse/server')) {
27
+ if (process.platform === 'win32') {
28
+ await execa('mkdir node_modules\\.pulse\\server', {
29
+ shell: true,
30
+ });
31
+ }
32
+ else {
33
+ await execa('mkdir -p node_modules/.pulse/server', {
34
+ shell: true,
35
+ });
36
+ }
37
+ }
25
38
  if (process.platform === 'win32') {
26
39
  await execa('xcopy /E /I node_modules\\@pulse-editor\\cli\\dist\\lib\\server node_modules\\.pulse\\server', {
27
40
  shell: true,
@@ -22,9 +22,19 @@ export default function Preview({ cli }) {
22
22
  });
23
23
  }
24
24
  }
25
- await execa('mkdir "node_modules/.pulse/server"', {
26
- shell: true,
27
- });
25
+ // Create node_modules/.pulse/server directory
26
+ if (!fs.existsSync('node_modules/.pulse/server')) {
27
+ if (process.platform === 'win32') {
28
+ await execa('mkdir node_modules\\.pulse\\server', {
29
+ shell: true,
30
+ });
31
+ }
32
+ else {
33
+ await execa('mkdir -p node_modules/.pulse/server', {
34
+ shell: true,
35
+ });
36
+ }
37
+ }
28
38
  if (process.platform === 'win32') {
29
39
  await execa('xcopy /E /I node_modules\\@pulse-editor\\cli\\dist\\lib\\server node_modules\\.pulse\\server', {
30
40
  shell: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulse-editor/cli",
3
- "version": "0.1.1-beta.14",
3
+ "version": "0.1.1-beta.15",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "pulse": "dist/cli.js"