@elementor/wp-lite-env 0.0.11 → 0.0.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # wp-lite-env
2
2
 
3
+ ## 0.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 81fa706: export commands
8
+
3
9
  ## 0.0.11
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1 +1,6 @@
1
1
  #!/usr/bin/env node
2
+ declare const start: (port: string, runPath: string) => Promise<void>;
3
+ declare const stop: (port: string, runPath: string) => Promise<void>;
4
+ declare const cli: (port: string, runPath: string, command: string) => Promise<void>;
5
+
6
+ export { cli, start, stop };
package/dist/index.js CHANGED
@@ -261,4 +261,9 @@ try {
261
261
  } finally {
262
262
  cleanup(port, runPath);
263
263
  }
264
+ export {
265
+ cli,
266
+ start,
267
+ stop
268
+ };
264
269
  //# sourceMappingURL=index.js.map
package/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import {cleanup, commandMap, generateFiles, getCliCommand, getConfigFilePath, getPort} from './src/run';
4
+ export {start, stop, cli} from './src/run';
4
5
 
5
6
  const command = process.argv[ 2 ];
6
7
  if ( ! commandMap[ command ] ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elementor/wp-lite-env",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "private": false,
5
5
  "description": "A simple, lightweight, docker-based WordPress environment",
6
6
  "main": "dist/index.js",
package/src/run.ts CHANGED
@@ -50,7 +50,7 @@ export const stop = async ( port: string, runPath: string ) => {
50
50
  } );
51
51
  };
52
52
 
53
- const cli = async ( port: string, runPath: string, command: string ) => {
53
+ export const cli = async ( port: string, runPath: string, command: string ) => {
54
54
  await run( 'cli', command, {
55
55
  cwd: runPath,
56
56
  commandOptions: [ '--rm' ],