@yarn-tool/check-pkg-bin 1.0.63 → 1.0.64

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,17 @@
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.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)
7
+
8
+
9
+ ### 🔖 Miscellaneous
10
+
11
+ * . ([104475f](https://github.com/bluelovers/ws-yarn-workspaces/commit/104475f2baa62e53dcc4cd6f3fb3a425cba1c88d))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [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)
7
18
 
8
19
 
@@ -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
@@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,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,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;KACD,IAAI,EAAE;KACN,SAAS,EAAE,CACZ;AAED,MAAM,KAAK,GAAG,IAAI,oBAAK,CAAC;IACvB,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;CAC5B,CAAC,CAAC;AAEH,IAAA,4BAAoB,EAAC,KAAK,CAAC,CAAC;AAE5B,MAAM,KAAK,GAAG,IAAA,kCAAmB,EAAC,sBAAO,CAAC,CAAC;AAE3C,KAAK,CAAC,OAAO,CAAC,IAAI,GAAG;IACpB,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;IAChC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;CAC5B,CAAC;AAEF,IAAI,IAAa,CAAC;AAElB,MAAM,QAAQ,GAAG,IAAA,oBAAQ,EAAC,GAAG,CAAC,CAAC;AAE/B,IAAI,MAAA,GAAG,CAAC,UAAU,mCAAI,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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"]}
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.63",
3
+ "version": "1.0.64",
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",
@@ -41,21 +41,21 @@
41
41
  "dependencies": {
42
42
  "@bluelovers/string-natural-compare": "^2.0.5",
43
43
  "@ts-type/package-dts": "^1.0.56",
44
- "@yarn-tool/find-root": "^1.0.57",
45
- "@yarn-tool/get-pkg-bin": "^1.0.43",
44
+ "@yarn-tool/find-root": "^1.0.58",
45
+ "@yarn-tool/get-pkg-bin": "^1.0.44",
46
46
  "@yarn-tool/shebang": "^1.0.9",
47
- "@yarn-tool/table": "^1.0.37",
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.69",
54
+ "ws-pkg-list": "^1.0.70",
55
55
  "yargs": "^17.3.0"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "c7b6df58fd9cba5cd39681895c0d9b4b5aabb957"
60
+ "gitHead": "ec1ab16bb8e958d833077ded25ddec8f0572531d"
61
61
  }