@serwist/build 9.2.3 → 9.3.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.
@@ -1,13 +1,13 @@
1
- import { type Assignable, type Equals, assertType } from "./schema/assert-type.js";
1
+ import { type Assignable, assertType, type Equals } from "./schema/assert-type.js";
2
2
  import { basePartial } from "./schema/base.js";
3
+ import { SerwistConfigError, validationErrorMap } from "./schema/error.js";
3
4
  import { getManifestOptions } from "./schema/get-manifest.js";
4
5
  import { globPartial, optionalGlobDirectoryPartial, requiredGlobDirectoryPartial } from "./schema/glob.js";
5
6
  import { baseInjectPartial, injectManifestOptions } from "./schema/inject-manifest.js";
6
7
  import { manifestEntry } from "./schema/manifest-entry.js";
7
8
  import { manifestTransform, manifestTransformResult } from "./schema/manifest-transform.js";
8
- import { SerwistConfigError, validationErrorMap } from "./schema/error.js";
9
9
  import { optionalSwDestPartial, requiredSwDestPartial } from "./schema/sw-dest.js";
10
- import { fn, asyncFn } from "./schema/utils.js";
10
+ import { asyncFn, fn } from "./schema/utils.js";
11
11
  export { assertType, fn, asyncFn, basePartial, globPartial, baseInjectPartial as injectPartial, injectManifestOptions, getManifestOptions, manifestEntry, manifestTransform, manifestTransformResult, optionalGlobDirectoryPartial, requiredGlobDirectoryPartial, optionalSwDestPartial, requiredSwDestPartial, validationErrorMap, SerwistConfigError, };
12
12
  export type { Assignable, Equals };
13
13
  //# sourceMappingURL=index.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.schema.d.ts","sourceRoot":"","sources":["../src/index.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,MAAM,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,4BAA4B,EAA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AE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EACL,UAAU,EACV,EAAE,EACF,OAAO,EACP,WAAW,EACX,WAAW,EACX,iBAAiB,IAAI,aAAa,EAClC,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,GACnB,CAAC;AACF,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export { a as asyncFn, b as basePartial, f as fn, g as globPartial, m as manifestEntry, c as manifestTransform, d as manifestTransformResult, o as optionalGlobDirectoryPartial, r as requiredGlobDirectoryPartial } from './chunks/glob.js';
2
+ export { S as SerwistConfigError, v as validationErrorMap } from './chunks/constants.js';
2
3
  export { getManifestOptions } from './chunks/get-manifest.js';
3
4
  export { i as injectManifestOptions, b as injectPartial, o as optionalSwDestPartial, r as requiredSwDestPartial } from './chunks/inject-manifest.js';
4
- export { S as SerwistConfigError, v as validationErrorMap } from './chunks/constants.js';
5
5
  import 'zod';
6
6
 
7
7
  function assertType() {}
@@ -1 +1 @@
1
- {"version":3,"file":"validate-options.d.ts","sourceRoot":"","sources":["../../src/lib/validate-options.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAE7F,eAAO,MAAM,0BAA0B,GAAU,OAAO,OAAO,KAAG,OAAO,CAAC,0BAA0B,CASnG,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAU,OAAO,OAAO,KAAG,OAAO,CAAC,6BAA6B,CASzG,CAAC"}
1
+ {"version":3,"file":"validate-options.d.ts","sourceRoot":"","sources":["../../src/lib/validate-options.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAE7F,eAAO,MAAM,0BAA0B,GAAU,OAAO,OAAO,KAAG,OAAO,CAAC,0BAA0B,CASnG,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAU,OAAO,OAAO,KAAG,OAAO,CAAC,6BAA6B,CASzG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/build",
3
- "version": "9.2.3",
3
+ "version": "9.3.0",
4
4
  "type": "module",
5
5
  "description": "A module that integrates into your build process, helping you generate a manifest of local files that should be precached.",
6
6
  "files": [
@@ -52,16 +52,16 @@
52
52
  "glob": "10.5.0",
53
53
  "pretty-bytes": "6.1.1",
54
54
  "source-map": "0.8.0-beta.0",
55
- "zod": "4.1.12"
55
+ "zod": "4.2.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/common-tags": "1.8.4",
59
- "@types/node": "24.10.1",
60
- "rollup": "4.53.3",
61
- "type-fest": "5.2.0",
59
+ "@types/node": "25.0.3",
60
+ "rollup": "4.54.0",
61
+ "type-fest": "5.3.1",
62
62
  "typescript": "5.9.3",
63
- "@serwist/configs": "9.2.3",
64
- "@serwist/utils": "9.2.3"
63
+ "@serwist/configs": "9.3.0",
64
+ "@serwist/utils": "9.3.0"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "typescript": ">=5.0.0"
@@ -1,13 +1,13 @@
1
- import { type Assignable, type Equals, assertType } from "./schema/assert-type.js";
1
+ import { type Assignable, assertType, type Equals } from "./schema/assert-type.js";
2
2
  import { basePartial } from "./schema/base.js";
3
+ import { SerwistConfigError, validationErrorMap } from "./schema/error.js";
3
4
  import { getManifestOptions } from "./schema/get-manifest.js";
4
5
  import { globPartial, optionalGlobDirectoryPartial, requiredGlobDirectoryPartial } from "./schema/glob.js";
5
6
  import { baseInjectPartial, injectManifestOptions } from "./schema/inject-manifest.js";
6
7
  import { manifestEntry } from "./schema/manifest-entry.js";
7
8
  import { manifestTransform, manifestTransformResult } from "./schema/manifest-transform.js";
8
- import { SerwistConfigError, validationErrorMap } from "./schema/error.js";
9
9
  import { optionalSwDestPartial, requiredSwDestPartial } from "./schema/sw-dest.js";
10
- import { fn, asyncFn } from "./schema/utils.js";
10
+ import { asyncFn, fn } from "./schema/utils.js";
11
11
 
12
12
  export {
13
13
  assertType,
@@ -6,8 +6,8 @@
6
6
  https://opensource.org/licenses/MIT.
7
7
  */
8
8
 
9
- import { toUnix } from "@serwist/utils";
10
9
  import path from "node:path";
10
+ import { toUnix } from "@serwist/utils";
11
11
 
12
12
  export function rebasePath({ baseDirectory, file }: { baseDirectory: string; file: string }): string {
13
13
  // The initial path is relative to the current directory, so make it absolute.
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import { SerwistConfigError } from "../schema/error.js";
3
2
  /*
4
3
  Copyright 2021 Google LLC
5
4
 
@@ -7,7 +6,7 @@ import { SerwistConfigError } from "../schema/error.js";
7
6
  license that can be found in the LICENSE file or at
8
7
  https://opensource.org/licenses/MIT.
9
8
  */
10
- import { validationErrorMap } from "../schema/error.js";
9
+ import { SerwistConfigError, validationErrorMap } from "../schema/error.js";
11
10
  import type { GetManifestOptionsComplete, InjectManifestOptionsComplete } from "../types.js";
12
11
 
13
12
  export const validateGetManifestOptions = async (input: unknown): Promise<GetManifestOptionsComplete> => {
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  import type { BasePartial, BaseResolved } from "../types.js";
4
- import { type Equals, assertType } from "./assert-type.js";
4
+ import { assertType, type Equals } from "./assert-type.js";
5
5
  import { manifestEntry } from "./manifest-entry.js";
6
6
  import { manifestTransform } from "./manifest-transform.js";
7
7
 
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import type { GetManifestOptions, GetManifestOptionsComplete } from "../types.js";
3
- import { type Equals, assertType } from "./assert-type.js";
3
+ import { assertType, type Equals } from "./assert-type.js";
4
4
  import { basePartial } from "./base.js";
5
5
  import { globPartial, requiredGlobDirectoryPartial } from "./glob.js";
6
6
 
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { DEFAULT_GLOB_PATTERNS } from "../lib/constants.js";
2
3
  import type {
3
4
  GlobPartial,
4
5
  GlobResolved,
@@ -7,8 +8,7 @@ import type {
7
8
  RequiredGlobDirectoryPartial,
8
9
  RequiredGlobDirectoryResolved,
9
10
  } from "../types.js";
10
- import { type Equals, assertType } from "./assert-type.js";
11
- import { DEFAULT_GLOB_PATTERNS } from "../lib/constants.js";
11
+ import { assertType, type Equals } from "./assert-type.js";
12
12
 
13
13
  export const globPartial = z.strictObject({
14
14
  globFollow: z.boolean().default(true),
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import type { InjectManifestOptions, InjectManifestOptionsComplete, InjectPartial, InjectResolved } from "../types.js";
3
- import { type Equals, assertType } from "./assert-type.js";
3
+ import { assertType, type Equals } from "./assert-type.js";
4
4
  import { basePartial } from "./base.js";
5
5
  import { globPartial, requiredGlobDirectoryPartial } from "./glob.js";
6
6
  import { requiredSwDestPartial } from "./sw-dest.js";
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import type { OptionalSwDestPartial, OptionalSwDestResolved, RequiredSwDestPartial, RequiredSwDestResolved } from "../types.js";
3
- import { type Equals, assertType } from "./assert-type.js";
3
+ import { assertType, type Equals } from "./assert-type.js";
4
4
 
5
5
  export const optionalSwDestPartial = z.strictObject({
6
6
  swDest: z.string().optional(),