pjj 0.2.2 → 0.2.3

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.
Files changed (2) hide show
  1. package/bin.mjs +8 -1
  2. package/package.json +1 -1
package/bin.mjs CHANGED
@@ -1,3 +1,10 @@
1
+ #!/usr/bin/env node
2
+ import { dog } from './src/dog.mjs';
1
3
  import { main } from './src/main.mjs';
2
4
 
3
- main();
5
+ try {
6
+ main();
7
+ }
8
+ catch (error) {
9
+ dog.error(error);
10
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pjj",
3
3
  "type": "module",
4
- "version": "0.2.2",
4
+ "version": "0.2.3",
5
5
  "description": "禁止在项目的根目录执行 npm publish,防止意外发布。该脚本命令需在 `prepublishOnly` ` 钩子中配置",
6
6
  "license": "ISC",
7
7
  "dependencies": {