@mxpicture/build-api 0.2.27 → 0.2.29

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.
@@ -1,6 +1,6 @@
1
1
  import { readdir, readFile } from "node:fs/promises";
2
2
  import { WorkspaceFileType, } from "../types/types.workspace.js";
3
- import { join, resolve } from "node:path";
3
+ import { join } from "node:path";
4
4
  import { parse } from "yaml";
5
5
  export const DEFAULT_WORKSPACE_FILE_ENDING = ".code-workspace";
6
6
  export const getFileType = (filename) => filename.endsWith(DEFAULT_WORKSPACE_FILE_ENDING)
@@ -59,7 +59,7 @@ export const findWorkspaceRoot = async (startPath) => {
59
59
  return result;
60
60
  };
61
61
  export const readWorkspaceYaml = async (repoRoot) => {
62
- const workspaceFilePath = resolve(repoRoot, "pnpm-workspace.yaml");
62
+ const workspaceFilePath = join(repoRoot, "pnpm-workspace.yaml");
63
63
  const fileContent = await readFile(workspaceFilePath, "utf8");
64
64
  const parsed = parse(fileContent);
65
65
  if (!parsed || !parsed.packages || !Array.isArray(parsed.packages))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mxpicture/build-api",
3
- "version": "0.2.27",
3
+ "version": "0.2.29",
4
4
  "description": "Build utilities API",
5
5
  "type": "module",
6
6
  "author": "MXPicture",
@@ -23,7 +23,6 @@
23
23
  "./types": "./dist/types/index.js",
24
24
  "./vscode": "./dist/vscode/index.js",
25
25
  "./workspace": "./dist/workspace/index.js",
26
- "./zod": "./dist/zod/index.js",
27
26
  "./package.json": "./package.json"
28
27
  },
29
28
  "files": [
@@ -50,7 +49,6 @@
50
49
  "micromatch": "^4.0.8",
51
50
  "prettier": "^3.8.1",
52
51
  "simple-git": "^3.32.3",
53
- "yaml": "^2.8.2",
54
- "zod": "^4.3.6"
52
+ "yaml": "^2.8.2"
55
53
  }
56
54
  }
@@ -1 +0,0 @@
1
- export * from "./zod.package.js";
package/dist/zod/index.js DELETED
@@ -1,2 +0,0 @@
1
- // This file is auto-generated. Do not edit manually.
2
- export * from "./zod.package.js";
@@ -1,13 +0,0 @@
1
- import { z } from "zod";
2
- export declare const packageVersionShape: {
3
- major: z.ZodNumber;
4
- minor: z.ZodXor<readonly [z.ZodNumber, z.ZodNull]>;
5
- patch: z.ZodXor<readonly [z.ZodNumber, z.ZodNull]>;
6
- prefix: z.ZodXor<readonly [z.ZodString, z.ZodNull]>;
7
- };
8
- export declare const packageVersionSchema: z.ZodObject<{
9
- major: z.ZodNumber;
10
- minor: z.ZodXor<readonly [z.ZodNumber, z.ZodNull]>;
11
- patch: z.ZodXor<readonly [z.ZodNumber, z.ZodNull]>;
12
- prefix: z.ZodXor<readonly [z.ZodString, z.ZodNull]>;
13
- }, z.core.$strip>;
@@ -1,10 +0,0 @@
1
- import { z } from "zod";
2
- export const packageVersionShape = {
3
- major: z.number().min(0),
4
- minor: z.xor([z.number(), z.null()]),
5
- patch: z.xor([z.number(), z.null()]),
6
- prefix: z.xor([z.string(), z.null()]),
7
- };
8
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
9
- const __validate = packageVersionShape;
10
- export const packageVersionSchema = z.object(packageVersionShape);