uni-run 1.1.0 → 1.1.1

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
@@ -69,7 +69,7 @@ Here `--some someValue` will be passed to `node` and will be ignored by `uni-run
69
69
 
70
70
  ## Define Custom Configuration
71
71
 
72
- Create `.uni-run.json` file in your user home directory.
72
+ Create `.uni-run.json` file in your user home directory or current working directory.
73
73
 
74
74
  ```json
75
75
  {
@@ -82,7 +82,7 @@ Now you can run your script with `run script.js` or `run script.ts` with your ow
82
82
 
83
83
  ## Setup Custom Executors
84
84
 
85
- Create `.uni-run.cjs` file in your user home directory.
85
+ Create `.uni-run.cjs` file in your user home directory or current working directory.
86
86
 
87
87
  ```js
88
88
  module.exports = [
package/dist/app.js CHANGED
@@ -66,8 +66,13 @@ arg.exec.on(([listArs, trailingArgs], flags) => {
66
66
  execution_1.default.start([...listArs, ...trailingArgs], (0, argHelper_1.mapFlagsToOptions)(flags));
67
67
  });
68
68
  arg.list.on(() => {
69
+ const userExecutors = (0, getUserExecutors_1.default)();
70
+ const totalExecutors = [
71
+ ...(Array.isArray(userExecutors) ? userExecutors : []),
72
+ ...scriptExecutors_1.default,
73
+ ];
69
74
  console.log('Supported scripts:');
70
- scriptExecutors_1.default
75
+ totalExecutors
71
76
  .sort((a, b) => {
72
77
  if (a.name < b.name)
73
78
  return -1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uni-run",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Universal Runner for many language",
5
5
  "type": "commonjs",
6
6
  "scripts": {