@code-pushup/create-cli 0.53.0 → 0.54.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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +17 -8
package/index.js CHANGED
@@ -14,7 +14,7 @@ var MAX_ISSUE_MESSAGE_LENGTH = 1024;
14
14
  var slugRegex = /^[a-z\d]+(?:-[a-z\d]+)*$/;
15
15
  var filenameRegex = /^(?!.*[ \\/:*?"<>|]).+$/;
16
16
  function hasDuplicateStrings(strings) {
17
- const sortedStrings = [...strings].sort();
17
+ const sortedStrings = strings.toSorted();
18
18
  const duplStrings = sortedStrings.filter(
19
19
  (item, index) => index !== 0 && item === sortedStrings[index - 1]
20
20
  );
@@ -108,7 +108,6 @@ var fileNameSchema = z.string().trim().regex(filenameRegex, {
108
108
  message: `The filename has to be valid`
109
109
  }).min(1, { message: "file name is invalid" });
110
110
  var positiveIntSchema = z.number().int().positive();
111
- var nonnegativeIntSchema = z.number().int().nonnegative();
112
111
  var nonnegativeNumberSchema = z.number().nonnegative();
113
112
  function packageVersionSchema(options) {
114
113
  const { versionDescription = "NPM version of the package", required } = options ?? {};
@@ -652,7 +651,7 @@ var auditDiffSchema = scorableWithPluginDiffSchema.merge(
652
651
  z16.object({
653
652
  values: makeComparisonSchema(auditValueSchema).merge(
654
653
  z16.object({
655
- diff: z16.number().int().describe("Value change (`values.after - values.before`)")
654
+ diff: z16.number().describe("Value change (`values.after - values.before`)")
656
655
  })
657
656
  ).describe("Audit `value` comparison"),
658
657
  displayValues: makeComparisonSchema(auditDisplayValueSchema).describe(
@@ -737,6 +736,7 @@ function executeProcess(cfg) {
737
736
  return new Promise((resolve, reject) => {
738
737
  const spawnedProcess = spawn(command, args ?? [], {
739
738
  shell: true,
739
+ windowsHide: true,
740
740
  ...options
741
741
  });
742
742
  let stdout = "";
package/package.json CHANGED
@@ -1,25 +1,34 @@
1
1
  {
2
2
  "name": "@code-pushup/create-cli",
3
- "version": "0.53.0",
3
+ "version": "0.54.0",
4
4
  "license": "MIT",
5
5
  "bin": "index.js",
6
- "dependencies": {
7
- "@code-pushup/nx-plugin": "0.53.0",
8
- "@code-pushup/utils": "0.53.0"
9
- },
10
6
  "homepage": "https://github.com/code-pushup/cli/tree/main/packages/create-cli#readme",
11
7
  "bugs": {
12
- "url": "https://github.com/code-pushup/cli/issues"
8
+ "url": "https://github.com/code-pushup/cli/issues?q=is%3Aissue%20state%3Aopen%20type%3ABug%20label%3A\"🧩%20create-cli\""
13
9
  },
14
10
  "repository": {
15
11
  "type": "git",
16
12
  "url": "git+https://github.com/code-pushup/cli.git",
17
13
  "directory": "packages/create-cli"
18
14
  },
15
+ "keywords": [
16
+ "CLI",
17
+ "Code PushUp",
18
+ "automation",
19
+ "developer tools",
20
+ "code quality",
21
+ "conformance",
22
+ "build tools"
23
+ ],
19
24
  "publishConfig": {
20
25
  "access": "public"
21
26
  },
22
27
  "type": "module",
23
28
  "main": "./index.js",
24
- "types": "./src/index.d.ts"
25
- }
29
+ "types": "./src/index.d.ts",
30
+ "dependencies": {
31
+ "@code-pushup/nx-plugin": "0.54.0",
32
+ "@code-pushup/utils": "0.54.0"
33
+ }
34
+ }