@oclif/plugin-test-cjs-1 0.2.6 → 0.3.0

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-cjs-1
18
18
  $ cjs1 COMMAND
19
19
  running command...
20
20
  $ cjs1 (--version)
21
- @oclif/plugin-test-cjs-1/0.2.6 linux-x64 node-v18.17.0
21
+ @oclif/plugin-test-cjs-1/0.3.0 linux-x64 node-v18.17.0
22
22
  $ cjs1 --help [COMMAND]
23
23
  USAGE
24
24
  $ cjs1 COMMAND
@@ -46,7 +46,7 @@ USAGE
46
46
  $ cjs1 cjs1
47
47
  ```
48
48
 
49
- _See code: [dist/commands/cjs1.ts](https://github.com/oclif/plugin-test-cjs-1/blob/v0.2.6/dist/commands/cjs1.ts)_
49
+ _See code: [dist/commands/cjs1.ts](https://github.com/oclif/plugin-test-cjs-1/blob/v0.3.0/dist/commands/cjs1.ts)_
50
50
 
51
51
  ## `cjs1 help [COMMANDS]`
52
52
 
package/bin/dev.cmd CHANGED
@@ -1,3 +1,3 @@
1
1
  @echo off
2
2
 
3
- node "%~dp0\dev" %*
3
+ node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*
package/bin/dev.js ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env -S node --loader ts-node/esm --no-warnings=ExperimentalWarning
2
+ // eslint-disable-next-line node/shebang
3
+ (async () => {
4
+ const oclif = await import('@oclif/core')
5
+ await oclif.execute({type: 'cjs', development: true, dir: __dirname})
6
+ })()
package/bin/run.cmd CHANGED
@@ -1,3 +1,3 @@
1
1
  @echo off
2
2
 
3
- node "%~dp0\run" %*
3
+ node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\run" %*
package/bin/run.js ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env -S node --loader ts-node/esm --no-warnings=ExperimentalWarning
2
+ // eslint-disable-next-line node/shebang
3
+ (async () => {
4
+ const oclif = await import('@oclif/core')
5
+ await oclif.execute({type: 'cjs', dir: __dirname})
6
+ })()
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.6",
2
+ "version": "0.3.0",
3
3
  "commands": {
4
4
  "cjs1": {
5
5
  "id": "cjs1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-cjs-1",
3
- "version": "0.2.6",
3
+ "version": "0.3.0",
4
4
  "description": "Test CJS plugin",
5
5
  "author": "Salesforce",
6
6
  "bin": {
@@ -22,7 +22,7 @@
22
22
  "@oclif/plugin-plugins": "^3.2.6"
23
23
  },
24
24
  "devDependencies": {
25
- "@oclif/test": "^2.4.2",
25
+ "@oclif/test": "^2.4.5",
26
26
  "@types/chai": "^4",
27
27
  "@types/mocha": "^9.0.0",
28
28
  "@types/node": "^16.18.39",
@@ -31,7 +31,7 @@
31
31
  "eslint-config-oclif": "^4",
32
32
  "eslint-config-oclif-typescript": "^1.0.3",
33
33
  "mocha": "^9",
34
- "oclif": "^3.11.2",
34
+ "oclif": "^3.11.3",
35
35
  "shx": "^0.3.4",
36
36
  "ts-node": "^10.9.1",
37
37
  "tslib": "^2.6.1",
package/bin/dev DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const oclif = require('@oclif/core')
4
-
5
- const path = require('path')
6
- const project = path.join(__dirname, '..', 'tsconfig.json')
7
-
8
- // In dev mode -> use ts-node and dev plugins
9
- process.env.NODE_ENV = 'development'
10
-
11
- require('ts-node').register({project})
12
-
13
- // In dev mode, always show stack traces
14
- oclif.settings.debug = true;
15
-
16
- // Start the CLI
17
- oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
package/bin/run DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const oclif = require('@oclif/core')
4
-
5
- oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'))