@pulse-editor/cli 0.1.1-beta.10 → 0.1.1-beta.11
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 +1 -1
- package/dist/components/commands/preview copy.d.ts +0 -5
- package/dist/components/commands/preview copy.js +0 -14
- package/dist/components/commands/start copy.d.ts +0 -5
- package/dist/components/commands/start copy.js +0 -14
- package/dist/lib/deps.d.ts +0 -1
- package/dist/lib/deps.js +0 -5
- package/dist/lib/node_module_bin.d.ts +0 -1
- package/dist/lib/node_module_bin.js +0 -7
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from 'ink';
|
|
3
|
-
import { useEffect } from 'react';
|
|
4
|
-
import { execa } from 'execa';
|
|
5
|
-
export default function Preview({ cli }) {
|
|
6
|
-
useEffect(() => {
|
|
7
|
-
// Start dev server
|
|
8
|
-
execa('npm run preview', {
|
|
9
|
-
stdio: 'inherit',
|
|
10
|
-
shell: true,
|
|
11
|
-
});
|
|
12
|
-
}, []);
|
|
13
|
-
return (_jsx(_Fragment, { children: _jsx(Text, { children: "Starting preview server..." }) }));
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from 'ink';
|
|
3
|
-
import { useEffect } from 'react';
|
|
4
|
-
import { execa } from 'execa';
|
|
5
|
-
export default function Start({ cli }) {
|
|
6
|
-
useEffect(() => {
|
|
7
|
-
// Start dev server
|
|
8
|
-
execa('npm run start', {
|
|
9
|
-
stdio: 'inherit',
|
|
10
|
-
shell: true,
|
|
11
|
-
});
|
|
12
|
-
}, []);
|
|
13
|
-
return (_jsx(_Fragment, { children: _jsx(Text, { children: "Starting prod server..." }) }));
|
|
14
|
-
}
|
package/dist/lib/deps.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getDepsBinPath(name: string): string;
|
package/dist/lib/deps.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// Get deps bin at node_modules/@pulse-editor/cli/node_modules
|
|
2
|
-
export function getDepsBinPath(name) {
|
|
3
|
-
const workingDir = process.cwd();
|
|
4
|
-
return `${workingDir}/node_modules/@pulse-editor/cli/node_modules/.bin/${process.platform === 'win32' ? `${name}.cmd` : name}`;
|
|
5
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function bin(name: string): string;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
|
-
import { fileURLToPath } from 'url';
|
|
3
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
4
|
-
const __dirname = path.dirname(__filename);
|
|
5
|
-
export function bin(name) {
|
|
6
|
-
return path.join(__dirname, 'node_modules', '.bin', process.platform === 'win32' ? `${name}.cmd` : name);
|
|
7
|
-
}
|