@oclif/plugin-test-esbuild 0.1.4 → 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 +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
- package/dist/commands/hello/index.d.ts +0 -12
- package/dist/commands/hello/index.js +0 -22
- package/dist/commands/hello/world.d.ts +0 -8
- package/dist/commands/hello/world.js +0 -17
- package/dist/hooks/init/init.d.ts +0 -3
- package/dist/hooks/init/init.js +0 -6
- package/dist/index.d.ts +0 -8
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.
|
|
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
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/plugin-test-esbuild",
|
|
3
|
-
"version": "0.1.
|
|
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",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
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,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;
|
package/dist/hooks/init/init.js
DELETED
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
|
-
};
|