@serwist/build 9.4.2 → 9.4.3
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/dist/index.js +1 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import { z } from 'zod';
|
|
|
9
9
|
import { v as validationErrorMap, S as SerwistConfigError } from './chunks/constants.js';
|
|
10
10
|
export { D as DEFAULT_GLOB_PATTERNS } from './chunks/constants.js';
|
|
11
11
|
import fsp from 'node:fs/promises';
|
|
12
|
+
import { toUnix } from '@serwist/utils';
|
|
12
13
|
import { SourceMapGenerator, SourceMapConsumer } from 'source-map';
|
|
13
14
|
|
|
14
15
|
const errors = {
|
|
@@ -458,10 +459,6 @@ const getManifest = async (config)=>{
|
|
|
458
459
|
return await getFileManifestEntries(options);
|
|
459
460
|
};
|
|
460
461
|
|
|
461
|
-
const toUnix = (p)=>{
|
|
462
|
-
return p.replace(/\\/g, "/").replace(/(?<!^)\/+/g, "/");
|
|
463
|
-
};
|
|
464
|
-
|
|
465
462
|
const innerRegex = /[#@] sourceMappingURL=([^\s'"]*)/;
|
|
466
463
|
const regex = RegExp(`(?:/\\*(?:\\s*\r?\n(?://)?)?(?:${innerRegex.source})\\s*\\*/|//(?:${innerRegex.source}))\\s*`);
|
|
467
464
|
function getSourceMapURL(srcContents) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/build",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.3",
|
|
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,7 +52,8 @@
|
|
|
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.2.1"
|
|
55
|
+
"zod": "4.2.1",
|
|
56
|
+
"@serwist/utils": "9.4.3"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
59
|
"@types/common-tags": "1.8.4",
|
|
@@ -60,8 +61,7 @@
|
|
|
60
61
|
"rollup": "4.54.0",
|
|
61
62
|
"type-fest": "5.3.1",
|
|
62
63
|
"typescript": "5.9.3",
|
|
63
|
-
"@serwist/configs": "9.4.
|
|
64
|
-
"@serwist/utils": "9.4.2"
|
|
64
|
+
"@serwist/configs": "9.4.3"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"typescript": ">=5.0.0"
|