@oclif/plugin-test-esbuild 0.1.3 → 0.1.5

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/README.md CHANGED
@@ -18,7 +18,7 @@ $ npm install -g @oclif/plugin-test-esbuild
18
18
  $ bundle COMMAND
19
19
  running command...
20
20
  $ bundle (--version)
21
- @oclif/plugin-test-esbuild/0.1.3 linux-x64 node-v20.11.0
21
+ @oclif/plugin-test-esbuild/0.1.5 linux-x64 node-v20.11.0
22
22
  $ bundle --help [COMMAND]
23
23
  USAGE
24
24
  $ bundle COMMAND
@@ -68,5 +68,5 @@
68
68
  "enableJsonFlag": false
69
69
  }
70
70
  },
71
- "version": "0.1.3"
71
+ "version": "0.1.5"
72
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Bundled plugin for testing",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
@@ -72,10 +72,10 @@
72
72
  }
73
73
  }
74
74
  },
75
- "repository": "oclif/plugin-test-bundle",
75
+ "repository": "oclif/plugin-test-esbuild",
76
76
  "scripts": {
77
77
  "build": "shx rm -rf dist && tsc -b",
78
- "bundle": "esbuild src/index.ts --bundle --platform=node --outfile=dist/index.js",
78
+ "bundle": "shx rm -rf dist && esbuild src/index.ts --bundle --platform=node --outfile=dist/index.js",
79
79
  "lint": "eslint . --ext .ts",
80
80
  "postpack": "shx rm -f oclif.manifest.json",
81
81
  "posttest": "yarn lint",
@@ -1,12 +0,0 @@
1
- import { Command } from '@oclif/core';
2
- export default class Hello extends Command {
3
- static args: {
4
- person: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
5
- };
6
- static description: string;
7
- static examples: string[];
8
- static flags: {
9
- from: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
10
- };
11
- run(): Promise<void>;
12
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const core_1 = require("@oclif/core");
4
- class Hello extends core_1.Command {
5
- static args = {
6
- person: core_1.Args.string({ description: 'Person to say hello to', required: true }),
7
- };
8
- static description = 'Say hello';
9
- static examples = [
10
- `$ oex hello friend --from oclif
11
- hello friend from oclif! (./src/commands/hello/index.ts)
12
- `,
13
- ];
14
- static flags = {
15
- from: core_1.Flags.string({ char: 'f', description: 'Who is saying hello', required: true }),
16
- };
17
- async run() {
18
- const { args, flags } = await this.parse(Hello);
19
- this.log(`hello ${args.person} from ${flags.from}! (./src/commands/hello/index.ts)`);
20
- }
21
- }
22
- exports.default = Hello;
@@ -1,8 +0,0 @@
1
- import { Command } from '@oclif/core';
2
- export default class World extends Command {
3
- static args: {};
4
- static description: string;
5
- static examples: string[];
6
- static flags: {};
7
- run(): Promise<void>;
8
- }
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const core_1 = require("@oclif/core");
4
- class World extends core_1.Command {
5
- static args = {};
6
- static description = 'Say hello world';
7
- static examples = [
8
- `<%= config.bin %> <%= command.id %>
9
- hello world! (./src/commands/hello/world.ts)
10
- `,
11
- ];
12
- static flags = {};
13
- async run() {
14
- this.log('hello world! (./src/commands/hello/world.ts)');
15
- }
16
- }
17
- exports.default = World;
@@ -1,3 +0,0 @@
1
- import { Hook } from '@oclif/core';
2
- declare const hook: Hook<'init'>;
3
- export default hook;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const hook = async function (opts) {
4
- process.stdout.write(`example hook running ${opts.id}\n`);
5
- };
6
- exports.default = hook;
package/dist/index.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import Hello from './commands/hello';
2
- import HelloWorld from './commands/hello/world';
3
- export { default as INIT_HOOK } from './hooks/init/init';
4
- export declare const COMMANDS: {
5
- hello: typeof Hello;
6
- 'hello:alias': typeof HelloWorld;
7
- 'hello:world': typeof HelloWorld;
8
- };