@yarn-tool/check-pkg-bin 1.0.61 → 1.0.65

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/CHANGELOG.md CHANGED
@@ -3,6 +3,50 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.65](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/check-pkg-bin@1.0.64...@yarn-tool/check-pkg-bin@1.0.65) (2021-12-26)
7
+
8
+
9
+ ### ♻️ Chores
10
+
11
+ * **deps:** update deps ([2915799](https://github.com/bluelovers/ws-yarn-workspaces/commit/2915799b24c73c0116d5bd48eeb724944bb39fbe))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.0.64](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/check-pkg-bin@1.0.63...@yarn-tool/check-pkg-bin@1.0.64) (2021-12-16)
18
+
19
+
20
+ ### 🔖 Miscellaneous
21
+
22
+ * . ([104475f](https://github.com/bluelovers/ws-yarn-workspaces/commit/104475f2baa62e53dcc4cd6f3fb3a425cba1c88d))
23
+
24
+
25
+
26
+
27
+
28
+ ## [1.0.63](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/check-pkg-bin@1.0.62...@yarn-tool/check-pkg-bin@1.0.63) (2021-12-06)
29
+
30
+
31
+ ### ♻️ Chores
32
+
33
+ * **deps:** update deps ([0377f3d](https://github.com/bluelovers/ws-yarn-workspaces/commit/0377f3da359fd07fb6cfaa86accaefaef993036c))
34
+
35
+
36
+
37
+
38
+
39
+ ## [1.0.62](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/check-pkg-bin@1.0.61...@yarn-tool/check-pkg-bin@1.0.62) (2021-11-28)
40
+
41
+
42
+ ### ♻️ Chores
43
+
44
+ * **deps:** update deps ([35d2bc5](https://github.com/bluelovers/ws-yarn-workspaces/commit/35d2bc557a8f73fd8638b073dedc189e5423c52e))
45
+
46
+
47
+
48
+
49
+
6
50
  ## [1.0.61](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/check-pkg-bin@1.0.60...@yarn-tool/check-pkg-bin@1.0.61) (2021-11-23)
7
51
 
8
52
 
@@ -3,12 +3,12 @@
3
3
  var _a;
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  const tslib_1 = require("tslib");
6
- const yargs_1 = (0, tslib_1.__importDefault)(require("yargs"));
6
+ const yargs_1 = tslib_1.__importDefault(require("yargs"));
7
7
  const __1 = require("..");
8
8
  const debug_color2_1 = require("debug-color2");
9
- const cli_table3_1 = (0, tslib_1.__importDefault)(require("cli-table3"));
10
- const pkg_dir_1 = (0, tslib_1.__importDefault)(require("pkg-dir"));
11
- const string_natural_compare_1 = (0, tslib_1.__importDefault)(require("@bluelovers/string-natural-compare"));
9
+ const cli_table3_1 = tslib_1.__importDefault(require("cli-table3"));
10
+ const pkg_dir_1 = tslib_1.__importDefault(require("pkg-dir"));
11
+ const string_natural_compare_1 = tslib_1.__importDefault(require("@bluelovers/string-natural-compare"));
12
12
  const table_1 = require("@yarn-tool/table");
13
13
  const find_root_1 = require("@yarn-tool/find-root");
14
14
  const cli = yargs_1.default
@@ -1 +1 @@
1
- {"version":3,"file":"check-pkg-bin.js","sourceRoot":"","sources":["check-pkg-bin.ts"],"names":[],"mappings":";;;;;AAEA,+DAA0B;AAC1B,0BAAgE;AAChE,+CAA4D;AAC5D,yEAA+B;AAC/B,mEAA6B;AAC7B,6GAAsE;AACtE,4CAAwD;AACxD,oDAAgD;AAEhD,MAAM,GAAG,GAAG,eAAK;KACf,MAAM,CAAC,YAAY,EAAE;IACrB,KAAK,EAAE,CAAC,GAAG,CAAC;IACZ,OAAO,EAAE,IAAI;CACb,CAAC;KACD,MAAM,CAAC,KAAK,EAAE;IACd,SAAS,EAAE,IAAI;IACf,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE;CACtB,CAAC;K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CAAC,IAAI;YACT,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC;SACnB,CAAC,CAAC;IACJ,CAAC,CAAC,CACF;CACD;KAED;IACC,IAAI,IAAI,GAAG,IAAA,eAAW,EAAC,iBAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;IAC5C,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3C,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAA;IACjC,IAAI,KAAK,GAAG,MAAM,CAAC;IAEnB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EACvB;QACC,KAAK,GAAG,MAAM,CAAA;KACd;SAED;QACC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;KACrC;IAED,KAAK,CAAC,IAAI,CAAC;QACV,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;QACrB,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC;KACnB,CAAC,CAAC;CACH;AAED,sBAAO,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAA;AAE7B,IAAI,IAAI,KAAK,KAAK,EAClB;IACC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;CACf","sourcesContent":["#!/usr/bin/env node\n\nimport yargs from 'yargs';\nimport { checkWorkspaces, checkPkgJson, checkPkgDir } from '..';\nimport { console, chalkByConsoleMaybe } from 'debug-color2';\nimport Table from 'cli-table3';\nimport pkgDir from 'pkg-dir';\nimport stringNaturalCompare from '@bluelovers/string-natural-compare';\nimport { applyStyleBorderless } from '@yarn-tool/table';\nimport { findRoot } from '@yarn-tool/find-root';\n\nconst cli = yargs\n\t.option('workspaces', {\n\t\talias: ['w'],\n\t\tboolean: true,\n\t})\n\t.option('cwd', {\n\t\tnormalize: true,\n\t\tdefault: process.cwd(),\n\t})\n\t.help()\n\t.parseSync()\n;\n\nconst table = new Table({\n\tcolAligns: ['left', 'right'],\n});\n\napplyStyleBorderless(table);\n\nconst chalk = chalkByConsoleMaybe(console);\n\ntable.options.head = [\n\tchalk.bold.reset('package name'),\n\tchalk.bold.reset('validate'),\n];\n\nlet bool: boolean;\n\nconst rootData = findRoot(cli);\n\nif (cli.workspaces ?? rootData.isWorkspace)\n{\n\tcheckWorkspaces(cli.cwd)\n\t\t.sort((a, b) => stringNaturalCompare(a.name, b.name))\n\t\t.forEach(data =>\n\t\t{\n\t\t\tlet valid = data.valid.toString()\n\t\t\tlet color = 'gray';\n\n\t\t\tif (data.result.length)\n\t\t\t{\n\t\t\t\tbool = data.valid && (bool ?? true)\n\n\t\t\t\tcolor = data.valid ? 'green' : 'red';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tvalid = 'none'\n\t\t\t}\n\n\t\t\ttable.push([\n\t\t\t\tdata.name,\n\t\t\t\tchalk[color](valid),\n\t\t\t]);\n\t\t})\n\t;\n}\nelse\n{\n\tlet data = checkPkgDir(pkgDir.sync(cli.cwd))\n\tbool = (!data.result.length || data.valid);\n\tlet valid = data.valid.toString()\n\tlet color = 'gray';\n\n\tif (!data.result.length)\n\t{\n\t\tvalid = 'none'\n\t}\n\telse\n\t{\n\t\tcolor = data.valid ? 'green' : 'red';\n\t}\n\n\ttable.push([\n\t\tchalk.blue(data.name),\n\t\tchalk[color](valid),\n\t]);\n}\n\nconsole.log(table.toString())\n\nif (bool === false)\n{\n\tprocess.exit(1)\n}\n"]}
1
+ {"version":3,"file":"check-pkg-bin.js","sourceRoot":"","sources":["check-pkg-bin.ts"],"names":[],"mappings":";;;;;AAEA,0DAA0B;AAC1B,0BAAgE;AAChE,+CAA4D;AAC5D,oEAA+B;AAC/B,8DAA6B;AAC7B,wGAAsE;AACtE,4CAAwD;AACxD,oDAAgD;AAEhD,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, chalkByConsoleMaybe } from 'debug-color2';\nimport Table from 'cli-table3';\nimport pkgDir from 'pkg-dir';\nimport stringNaturalCompare from '@bluelovers/string-natural-compare';\nimport { applyStyleBorderless } from '@yarn-tool/table';\nimport { findRoot } from '@yarn-tool/find-root';\n\nconst cli = yargs\n\t.option('workspaces', {\n\t\talias: ['w'],\n\t\tboolean: true,\n\t})\n\t.option('cwd', {\n\t\tnormalize: true,\n\t\tdefault: process.cwd(),\n\t})\n\t.help()\n\t.parseSync()\n;\n\nconst table = new Table({\n\tcolAligns: ['left', 'right'],\n});\n\napplyStyleBorderless(table);\n\nconst chalk = chalkByConsoleMaybe(console);\n\ntable.options.head = [\n\tchalk.bold.reset('package name'),\n\tchalk.bold.reset('validate'),\n];\n\nlet bool: boolean;\n\nconst rootData = findRoot(cli);\n\nif (cli.workspaces ?? rootData.isWorkspace)\n{\n\tcheckWorkspaces(cli.cwd)\n\t\t.sort((a, b) => stringNaturalCompare(a.name, b.name))\n\t\t.forEach(data =>\n\t\t{\n\t\t\tlet valid = data.valid.toString()\n\t\t\tlet color = 'gray';\n\n\t\t\tif (data.result.length)\n\t\t\t{\n\t\t\t\tbool = data.valid && (bool ?? true)\n\n\t\t\t\tcolor = data.valid ? 'green' : 'red';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tvalid = 'none'\n\t\t\t}\n\n\t\t\ttable.push([\n\t\t\t\tdata.name,\n\t\t\t\tchalk[color](valid),\n\t\t\t]);\n\t\t})\n\t;\n}\nelse\n{\n\tlet data = checkPkgDir(pkgDir.sync(cli.cwd))\n\tbool = (!data.result.length || data.valid);\n\tlet valid = data.valid.toString()\n\tlet color = 'gray';\n\n\tif (!data.result.length)\n\t{\n\t\tvalid = 'none'\n\t}\n\telse\n\t{\n\t\tcolor = data.valid ? 'green' : 'red';\n\t}\n\n\ttable.push([\n\t\tchalk.blue(data.name),\n\t\tchalk[color](valid),\n\t]);\n}\n\nconsole.log(table.toString())\n\nif (bool === false)\n{\n\tprocess.exit(1)\n}\n"]}
package/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const pkg_1 = require("./lib/pkg");
5
- (0, tslib_1.__exportStar)(require("./lib/core"), exports);
6
- (0, tslib_1.__exportStar)(require("./lib/ws"), exports);
7
- (0, tslib_1.__exportStar)(require("./lib/pkg"), exports);
5
+ tslib_1.__exportStar(require("./lib/core"), exports);
6
+ tslib_1.__exportStar(require("./lib/ws"), exports);
7
+ tslib_1.__exportStar(require("./lib/pkg"), exports);
8
8
  exports.default = pkg_1.checkPkgDir;
9
9
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAwC;AAExC,0DAA2B;AAC3B,wDAAyB;AACzB,yDAA0B;AAE1B,kBAAe,iBAAW,CAAA","sourcesContent":["import { checkPkgDir } from './lib/pkg';\n\nexport * from './lib/core';\nexport * from './lib/ws';\nexport * from './lib/pkg';\n\nexport default checkPkgDir\n\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAwC;AAExC,qDAA2B;AAC3B,mDAAyB;AACzB,oDAA0B;AAE1B,kBAAe,iBAAW,CAAA","sourcesContent":["import { checkPkgDir } from './lib/pkg';\n\nexport * from './lib/core';\nexport * from './lib/ws';\nexport * from './lib/pkg';\n\nexport default checkPkgDir\n\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarn-tool/check-pkg-bin",
3
- "version": "1.0.61",
3
+ "version": "1.0.65",
4
4
  "description": "check pkg bin has shebang",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/bluelovers/ws-yarn-workspaces/tree/master/packages/@yarn-tool/check-pkg-bin#readme",
@@ -39,23 +39,23 @@
39
39
  "tsc:esm": "tsc -p tsconfig.esm.json"
40
40
  },
41
41
  "dependencies": {
42
- "@bluelovers/string-natural-compare": "^1.1.3",
43
- "@ts-type/package-dts": "^1.0.53",
44
- "@yarn-tool/find-root": "^1.0.55",
45
- "@yarn-tool/get-pkg-bin": "^1.0.41",
42
+ "@bluelovers/string-natural-compare": "^2.0.5",
43
+ "@ts-type/package-dts": "^1.0.56",
44
+ "@yarn-tool/find-root": "^1.0.59",
45
+ "@yarn-tool/get-pkg-bin": "^1.0.44",
46
46
  "@yarn-tool/shebang": "^1.0.9",
47
- "@yarn-tool/table": "^1.0.35",
47
+ "@yarn-tool/table": "^1.0.38",
48
48
  "cli-table3": "^0.6.0",
49
49
  "debug-color2": "^1.2.7",
50
50
  "fs-extra": "^10.0.0",
51
51
  "pkg-dir": "< 6 >= 5",
52
52
  "tslib": "^2.3.1",
53
53
  "upath2": "^3.1.10",
54
- "ws-pkg-list": "^1.0.67",
55
- "yargs": "^17.2.1"
54
+ "ws-pkg-list": "^1.0.71",
55
+ "yargs": "^17.3.1"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "131c97352e084d1e39cafded98b6bc967b7a9eee"
60
+ "gitHead": "94c353980d59a7cebfd89d3d6d62bef692d95f69"
61
61
  }