@valbuild/shared 0.123.0 → 0.123.2

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,118 +1,10 @@
1
1
  import { Internal, CODE_LANGUAGES, DEFAULT_COLOR_FORMAT } from '@valbuild/core';
2
- import { b as base64DataUrlToUint8Array } from '../../dist/utils-00f3e1df.esm.js';
2
+ import { _ as _createForOfIteratorHelper, k as _objectSpread2, l as _arrayLikeToArray, m as _unsupportedIterableToArray, n as _defineProperty, o as _typeof } from '../../dist/getSitemapTree-d3e98a2e.esm.js';
3
+ export { b as VAL_AI_SESSION_STORAGE_KEY, d as VAL_CANVAS_MESSAGE, c as VAL_CANVAS_PARAM, V as VAL_CONFIG_SESSION_STORAGE_KEY, a as VAL_THEME_SESSION_STORAGE_KEY, h as getNextAppRouterSitemapTree, g as getNextAppRouterSourceFolder, j as getPatternFromModuleFilePath, f as isValCanvasFrame, i as isValCanvasPageMessage, e as isValCanvasStudioMessage, p as parseRoutePattern, w as withValCanvasParam } from '../../dist/getSitemapTree-d3e98a2e.esm.js';
3
4
  import { z } from 'zod';
4
5
  import { fromError } from 'zod-validation-error';
5
6
  import FlexSearch from 'flexsearch';
6
-
7
- function _toPrimitive(t, r) {
8
- if ("object" != typeof t || !t) return t;
9
- var e = t[Symbol.toPrimitive];
10
- if (void 0 !== e) {
11
- var i = e.call(t, r || "default");
12
- if ("object" != typeof i) return i;
13
- throw new TypeError("@@toPrimitive must return a primitive value.");
14
- }
15
- return ("string" === r ? String : Number)(t);
16
- }
17
-
18
- function _toPropertyKey(t) {
19
- var i = _toPrimitive(t, "string");
20
- return "symbol" == typeof i ? i : i + "";
21
- }
22
-
23
- function _defineProperty(e, r, t) {
24
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
25
- value: t,
26
- enumerable: !0,
27
- configurable: !0,
28
- writable: !0
29
- }) : e[r] = t, e;
30
- }
31
-
32
- function ownKeys(e, r) {
33
- var t = Object.keys(e);
34
- if (Object.getOwnPropertySymbols) {
35
- var o = Object.getOwnPropertySymbols(e);
36
- r && (o = o.filter(function (r) {
37
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
38
- })), t.push.apply(t, o);
39
- }
40
- return t;
41
- }
42
- function _objectSpread2(e) {
43
- for (var r = 1; r < arguments.length; r++) {
44
- var t = null != arguments[r] ? arguments[r] : {};
45
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
46
- _defineProperty(e, r, t[r]);
47
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
48
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
49
- });
50
- }
51
- return e;
52
- }
53
-
54
- function _arrayLikeToArray(r, a) {
55
- (null == a || a > r.length) && (a = r.length);
56
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
57
- return n;
58
- }
59
-
60
- function _unsupportedIterableToArray(r, a) {
61
- if (r) {
62
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
63
- var t = {}.toString.call(r).slice(8, -1);
64
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
65
- }
66
- }
67
-
68
- function _createForOfIteratorHelper(r, e) {
69
- var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
70
- if (!t) {
71
- if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
72
- t && (r = t);
73
- var n = 0,
74
- F = function () {};
75
- return {
76
- s: F,
77
- n: function () {
78
- return n >= r.length ? {
79
- done: !0
80
- } : {
81
- done: !1,
82
- value: r[n++]
83
- };
84
- },
85
- e: function (r) {
86
- throw r;
87
- },
88
- f: F
89
- };
90
- }
91
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
92
- }
93
- var o,
94
- a = !0,
95
- u = !1;
96
- return {
97
- s: function () {
98
- t = t.call(r);
99
- },
100
- n: function () {
101
- var r = t.next();
102
- return a = r.done, r;
103
- },
104
- e: function (r) {
105
- u = !0, o = r;
106
- },
107
- f: function () {
108
- try {
109
- a || null == t.return || t.return();
110
- } finally {
111
- if (u) throw o;
112
- }
113
- }
114
- };
115
- }
7
+ import { b as base64DataUrlToUint8Array } from '../../dist/utils-00f3e1df.esm.js';
116
8
 
117
9
  function remirrorToRichTextSource(node, configDirectory, remoteOptions) {
118
10
  var files = {};
@@ -2963,16 +2855,6 @@ var Api = {
2963
2855
  // `number` is allowed because the client stringifies every query value before it
2964
2856
  // goes on the URL (see createValClient), so a numeric param round-trips fine.
2965
2857
 
2966
- function _typeof(o) {
2967
- "@babel/helpers - typeof";
2968
-
2969
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2970
- return typeof o;
2971
- } : function (o) {
2972
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2973
- }, _typeof(o);
2974
- }
2975
-
2976
2858
  function getErrorMessageFromUnknownJson(json, fallback) {
2977
2859
  if (_typeof(json) === "object" && json !== null && "message" in json && typeof json.message === "string") {
2978
2860
  return json.message;
@@ -3652,10 +3534,6 @@ function newestCommitSha(commits) {
3652
3534
  return (_newest$commitSha = (_newest = newest) === null || _newest === void 0 ? void 0 : _newest.commitSha) !== null && _newest$commitSha !== void 0 ? _newest$commitSha : null;
3653
3535
  }
3654
3536
 
3655
- var VAL_CONFIG_SESSION_STORAGE_KEY = "val-config";
3656
- var VAL_THEME_SESSION_STORAGE_KEY = "val-theme";
3657
- var VAL_AI_SESSION_STORAGE_KEY = "val-ai-session";
3658
-
3659
3537
  var SharedValConfig = z.object({
3660
3538
  contentHostUrl: z.string().optional(),
3661
3539
  appHostUrl: z.string().optional(),
@@ -3683,170 +3561,6 @@ var ValDeployment = z.object({
3683
3561
  createdAt: z.string()
3684
3562
  });
3685
3563
 
3686
- // Strictly speaking this should be in the next package but it's shared, because we want to use it in the ui package. We want to resolve that somehow
3687
- function getNextAppRouterSitemapTree(srcFolder, paths) {
3688
- var root = {
3689
- type: "node",
3690
- name: "/",
3691
- children: []
3692
- };
3693
- var _iterator = _createForOfIteratorHelper(paths),
3694
- _step;
3695
- try {
3696
- var _loop = function _loop() {
3697
- var path = _step.value;
3698
- var urlPath = path.urlPath,
3699
- moduleFilePathS = path.moduleFilePath;
3700
- var moduleFilePath = moduleFilePathS;
3701
- if (!urlPath.startsWith("/")) {
3702
- console.error("urlPath must start with /: ".concat(urlPath));
3703
- return 0; // continue
3704
- }
3705
- var pattern = getPatternFromModuleFilePath(moduleFilePath, srcFolder);
3706
- if (urlPath === "/") {
3707
- var fullPath = "/";
3708
- root.pattern = getPatternFromModuleFilePath(moduleFilePath, srcFolder);
3709
- root.page = {
3710
- fullPath: fullPath
3711
- };
3712
- root.sourcePath = Internal.joinModuleFilePathAndModulePath(moduleFilePath, "\"".concat(fullPath, "\""));
3713
- root.moduleFilePath = moduleFilePath;
3714
- return 0; // continue
3715
- }
3716
- var pathParts = urlPath.split("/").slice(1).filter(Boolean);
3717
- var currentNode = root;
3718
- pathParts.forEach(function (part, index) {
3719
- var hasChildren = index < pathParts.length - 1;
3720
- var isLast = index === pathParts.length - 1;
3721
- var fullPath = "/" + pathParts.slice(0, index + 1).join("/");
3722
- var sourcePath = Internal.joinModuleFilePathAndModulePath(moduleFilePath, "\"".concat(fullPath, "\""));
3723
- var node = hasChildren ? _objectSpread2(_objectSpread2({
3724
- type: "node",
3725
- name: part,
3726
- pattern: pattern,
3727
- moduleFilePath: moduleFilePath
3728
- }, isLast ? {
3729
- page: {
3730
- fullPath: fullPath
3731
- },
3732
- sourcePath: sourcePath
3733
- } : {}), {}, {
3734
- children: []
3735
- }) : {
3736
- type: "leaf",
3737
- name: part,
3738
- pattern: pattern,
3739
- fullPath: fullPath,
3740
- moduleFilePath: moduleFilePath,
3741
- sourcePath: sourcePath,
3742
- children: []
3743
- };
3744
- var existingNodeIndex = currentNode.children.findIndex(function (node) {
3745
- return node.name === part;
3746
- });
3747
- if (existingNodeIndex === -1) {
3748
- currentNode.children.push(node);
3749
- if (currentNode.type === "node") {
3750
- currentNode.isLinear = true;
3751
- if (currentNode.children.length > 1) {
3752
- delete currentNode.isLinear;
3753
- }
3754
- }
3755
- currentNode = node;
3756
- } else {
3757
- var existingNode = currentNode.children[existingNodeIndex];
3758
- if (existingNode.type === "leaf" && hasChildren) {
3759
- var _sourcePath = existingNode.sourcePath;
3760
- // convert leaf to node
3761
- currentNode.children[existingNodeIndex] = {
3762
- type: "node",
3763
- name: part,
3764
- pattern: pattern,
3765
- page: {
3766
- fullPath: fullPath
3767
- },
3768
- sourcePath: _sourcePath,
3769
- children: existingNode.children,
3770
- moduleFilePath: moduleFilePath
3771
- };
3772
- currentNode = currentNode.children[existingNodeIndex];
3773
- } else if (existingNode.type === "node" && isLast) {
3774
- // add page, source path and module file path
3775
- existingNode.page = {
3776
- fullPath: fullPath
3777
- };
3778
- existingNode.sourcePath = sourcePath;
3779
- existingNode.moduleFilePath = moduleFilePath;
3780
- existingNode.pattern = pattern;
3781
- } else {
3782
- currentNode = currentNode.children[existingNodeIndex];
3783
- }
3784
- }
3785
- });
3786
- },
3787
- _ret;
3788
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
3789
- _ret = _loop();
3790
- if (_ret === 0) continue;
3791
- }
3792
- } catch (err) {
3793
- _iterator.e(err);
3794
- } finally {
3795
- _iterator.f();
3796
- }
3797
- return root;
3798
- }
3799
- function getPatternFromModuleFilePath(moduleFilePath, srcFolder) {
3800
- return moduleFilePath.replace(srcFolder, "")
3801
- // TODO: hacky!
3802
- // remove route groups
3803
- .replace(/\/\([^/]+\)/g, "") // not sure we want to do this?
3804
- .replace("/page.val.ts", "").replace("/page.val.js", "");
3805
- }
3806
-
3807
- function parseRoutePattern(pattern) {
3808
- if (pattern === "" || pattern === "/") {
3809
- return [];
3810
- }
3811
- var p = pattern.startsWith("/") ? pattern.slice(1) : pattern;
3812
- return p.split("/").map(function (part) {
3813
- var isOptionalParam = part.startsWith("[[") && part.endsWith("]]");
3814
- var isNonOptionalParam = part.startsWith("[") && part.endsWith("]");
3815
- var nameStart = isOptionalParam ? 2 : isNonOptionalParam ? 1 : 0;
3816
- var nameEnd = part.indexOf("]", nameStart);
3817
- var isArrayParam = part.slice(nameStart, nameStart + 3) === "...";
3818
- var paramName = part.slice(nameStart + (isArrayParam ? 3 : 0), nameEnd);
3819
- if (isOptionalParam || isNonOptionalParam) {
3820
- if (isArrayParam) {
3821
- return {
3822
- type: "array-param",
3823
- paramName: paramName,
3824
- optional: isOptionalParam
3825
- };
3826
- } else {
3827
- return {
3828
- type: "string-param",
3829
- paramName: paramName,
3830
- optional: isOptionalParam
3831
- };
3832
- }
3833
- }
3834
- return {
3835
- type: "literal",
3836
- name: part
3837
- };
3838
- });
3839
- }
3840
-
3841
- function getNextAppRouterSourceFolder(moduleFilePath) {
3842
- if (moduleFilePath.startsWith("/app")) {
3843
- return "/app";
3844
- } else if (moduleFilePath.startsWith("/src/app")) {
3845
- return "/src/app";
3846
- }
3847
- return null;
3848
- }
3849
-
3850
3564
  /**
3851
3565
  * Shared route validation utilities
3852
3566
  */
@@ -4328,84 +4042,6 @@ function resolveSchemaSourceFixes(validationErrors, snapshot) {
4328
4042
  return result;
4329
4043
  }
4330
4044
 
4331
- /**
4332
- * The protocol between the studio's canvas and the page inside it.
4333
- *
4334
- * The canvas shows the running site in a frame. That frame is a different
4335
- * document — the customer's app, rendered by their components — so the studio
4336
- * cannot reach into it, and it cannot reach out. Everything they say to each
4337
- * other goes through `postMessage`, and this is the vocabulary.
4338
- *
4339
- * It lives in `shared` because both halves have to agree on it: the page half
4340
- * ships in `@valbuild/next`, the studio half in `@valbuild/ui`, and a message
4341
- * shape defined twice is a message shape that will differ once.
4342
- *
4343
- * ## Why a query parameter turns it on
4344
- *
4345
- * The frame has to render the page as Val sees it — draft content, with
4346
- * `data-val-path` on every element Val tracks — while *not* showing Val's own
4347
- * overlay, because the studio is already the UI. Nothing about the cookies can
4348
- * express that: they are per-origin, and the studio and the page share an
4349
- * origin, so a cookie would change the customer's own tabs too. A parameter on
4350
- * the frame's URL is scoped to exactly the one document that needs it.
4351
- */
4352
-
4353
- /** Marks a page load as the studio's canvas frame. */
4354
- var VAL_CANVAS_PARAM = "val_canvas";
4355
-
4356
- /**
4357
- * Every message is tagged with this, and the tag is checked on receipt.
4358
- *
4359
- * A window receives messages from anything that has a handle on it —
4360
- * extensions, embeds, other frames — and `event.data` is whatever they chose to
4361
- * send. Checking a discriminator before reading anything else is what keeps a
4362
- * stray message from being read as a canvas instruction.
4363
- */
4364
- var VAL_CANVAS_MESSAGE = "val-canvas";
4365
-
4366
- /** One element on the page that Val has a path for. */
4367
-
4368
- /** What the page tells the studio. */
4369
-
4370
- /** What the studio tells the page. */
4371
-
4372
- /** Narrow an unknown `event.data` to a message from the page. */
4373
- function isValCanvasPageMessage(data) {
4374
- if (_typeof(data) !== "object" || data === null) return false;
4375
- var message = data;
4376
- if (message.val !== VAL_CANVAS_MESSAGE) return false;
4377
- return message.type === "ready" || message.type === "elements" || message.type === "clicked" || message.type === "pinch" || message.type === "zoom" || message.type === "refreshing";
4378
- }
4379
-
4380
- /** Narrow an unknown `event.data` to a message from the studio. */
4381
- function isValCanvasStudioMessage(data) {
4382
- if (_typeof(data) !== "object" || data === null) return false;
4383
- var message = data;
4384
- if (message.val !== VAL_CANVAS_MESSAGE) return false;
4385
- return message.type === "rescan" || message.type === "highlight" || message.type === "setPicking" || message.type === "sourceUpdate" || message.type === "sourcesSynced";
4386
- }
4387
-
4388
- /**
4389
- * Whether this document was loaded as the studio's canvas frame.
4390
- *
4391
- * Reads the location directly rather than taking it as an argument, because
4392
- * every caller wants the answer for the document it is running in, and passing
4393
- * it around is how one of them ends up asking about the wrong one.
4394
- */
4395
- function isValCanvasFrame(search) {
4396
- try {
4397
- return new URLSearchParams(search).get(VAL_CANVAS_PARAM) !== null;
4398
- } catch (_unused) {
4399
- return false;
4400
- }
4401
- }
4402
-
4403
- /** Add the canvas marker to a page URL. */
4404
- function withValCanvasParam(url) {
4405
- var separator = url.includes("?") ? "&" : "?";
4406
- return "".concat(url).concat(separator).concat(VAL_CANVAS_PARAM, "=1");
4407
- }
4408
-
4409
4045
  /**
4410
4046
  * Local `yyyy-MM-dd`, which is the one thing this module used `date-fns` for.
4411
4047
  *
@@ -5871,4 +5507,4 @@ function performSearch(searchIndex, query) {
5871
5507
  };
5872
5508
  }
5873
5509
 
5874
- export { Api, BinaryFileRef, CodeOptions, ColorOptions, DEFAULT_ERROR_MESSAGE, DateOptions, ENCODE_DEFAULTS, ENCODE_MIME_TYPE_OF, FileOptions, HistoricalCommit, HistoricalModule, HistoricalPatchSet, HistoryError, ImageEncodeOption, ImageOptions, JSONValue, JSON_ENTRIES_BATCH_MAX, ModuleComparison, NEVER_ENCODED, ParentRef$1 as ParentRef, Patch, PatchBlock, PatchGroup, PatchId, PatchJSON, RemirrorBr, RemirrorBulletList, RemirrorHeading, RemirrorImage, RemirrorJSON, RemirrorLinkMark, RemirrorListItem, RemirrorOrderedList, RemirrorParagraph, RemirrorText, RemirrorTextMark, RestoreVerdict, RichTextOptions, SerializedArraySchema, SerializedBooleanSchema, SerializedCodeSchema, SerializedColorSchema, SerializedDateSchema, SerializedDateTimeSchema, SerializedFileSchema, SerializedImageSchema, SerializedKeyOfSchema, SerializedLiteralSchema, SerializedNumberSchema, SerializedObjectSchema, SerializedRecordSchema, SerializedRichTextSchema, SerializedRouteSchema, SerializedSchema, SerializedSettingsSchema, SerializedStringSchema, SerializedUnionSchema, SharedValConfig, VAL_AI_SESSION_STORAGE_KEY, VAL_CANVAS_MESSAGE, VAL_CANVAS_PARAM, VAL_CONFIG_SESSION_STORAGE_KEY, VAL_ENABLE_COOKIE_NAME, VAL_SESSION_COOKIE, VAL_STATE_COOKIE, VAL_THEME_SESSION_STORAGE_KEY, ValCommit, ValDeployment, buildDuplicatePatch, buildEmptyAtPathPatch, buildFileRefValue, buildImageGalleryPatch, buildRemoveImageGalleryEntryPatch, buildSearchIndex, checkCompatibility, chooseEncoded, concatModulePath, createRegExpFromPattern, createSearchIndex, createValClient, describeContainerAtPath, emptyOf, explainIncompatible, filterBlockingValidationErrors, filterRoutesByPatterns, findSimilar, fitWithin, flattenRichText, getErrorMessageFromUnknownJson, getFilenameFromRef, getInlineImgInfo, getNextAppRouterSitemapTree, getNextAppRouterSourceFolder, getPatternFromModuleFilePath, getRefParts, getRoutesOf, getRoutesWithModulePaths, getSourceAt, indexModule, isMimeTypeAccepted, isRemoteSchema, isSkippedSource, isValCanvasFrame, isValCanvasPageMessage, isValCanvasStudioMessage, levenshtein, newestCommitSha, parseRoutePattern, partitionValidationErrors, performSearch, remirrorToRichTextSource, removeModule, resolveEncodeSettings, resolveSchemaSourceFixForError, resolveSchemaSourceFixes, resolveSerializedSchemaAtPath, richTextToRemirror, safeParsePatch, sourcePathOfChild, toolNames, traverseSchemaSource, urlOf, validateRoutePatterns, withExtension, withValCanvasParam };
5510
+ export { Api, BinaryFileRef, CodeOptions, ColorOptions, DEFAULT_ERROR_MESSAGE, DateOptions, ENCODE_DEFAULTS, ENCODE_MIME_TYPE_OF, FileOptions, HistoricalCommit, HistoricalModule, HistoricalPatchSet, HistoryError, ImageEncodeOption, ImageOptions, JSONValue, JSON_ENTRIES_BATCH_MAX, ModuleComparison, NEVER_ENCODED, ParentRef$1 as ParentRef, Patch, PatchBlock, PatchGroup, PatchId, PatchJSON, RemirrorBr, RemirrorBulletList, RemirrorHeading, RemirrorImage, RemirrorJSON, RemirrorLinkMark, RemirrorListItem, RemirrorOrderedList, RemirrorParagraph, RemirrorText, RemirrorTextMark, RestoreVerdict, RichTextOptions, SerializedArraySchema, SerializedBooleanSchema, SerializedCodeSchema, SerializedColorSchema, SerializedDateSchema, SerializedDateTimeSchema, SerializedFileSchema, SerializedImageSchema, SerializedKeyOfSchema, SerializedLiteralSchema, SerializedNumberSchema, SerializedObjectSchema, SerializedRecordSchema, SerializedRichTextSchema, SerializedRouteSchema, SerializedSchema, SerializedSettingsSchema, SerializedStringSchema, SerializedUnionSchema, SharedValConfig, VAL_ENABLE_COOKIE_NAME, VAL_SESSION_COOKIE, VAL_STATE_COOKIE, ValCommit, ValDeployment, buildDuplicatePatch, buildEmptyAtPathPatch, buildFileRefValue, buildImageGalleryPatch, buildRemoveImageGalleryEntryPatch, buildSearchIndex, checkCompatibility, chooseEncoded, concatModulePath, createRegExpFromPattern, createSearchIndex, createValClient, describeContainerAtPath, emptyOf, explainIncompatible, filterBlockingValidationErrors, filterRoutesByPatterns, findSimilar, fitWithin, flattenRichText, getErrorMessageFromUnknownJson, getFilenameFromRef, getInlineImgInfo, getRefParts, getRoutesOf, getRoutesWithModulePaths, getSourceAt, indexModule, isMimeTypeAccepted, isRemoteSchema, isSkippedSource, levenshtein, newestCommitSha, partitionValidationErrors, performSearch, remirrorToRichTextSource, removeModule, resolveEncodeSettings, resolveSchemaSourceFixForError, resolveSchemaSourceFixes, resolveSerializedSchemaAtPath, richTextToRemirror, safeParsePatch, sourcePathOfChild, toolNames, traverseSchemaSource, urlOf, validateRoutePatterns, withExtension };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/shared",
3
- "version": "0.123.0",
3
+ "version": "0.123.2",
4
4
  "private": false,
5
5
  "description": "Val shared types and utilities",
6
6
  "repository": {
@@ -14,6 +14,10 @@
14
14
  "module": "./dist/valbuild-shared.esm.js",
15
15
  "default": "./dist/valbuild-shared.cjs.js"
16
16
  },
17
+ "./client": {
18
+ "module": "./client/dist/valbuild-shared-client.esm.js",
19
+ "default": "./client/dist/valbuild-shared-client.cjs.js"
20
+ },
17
21
  "./internal": {
18
22
  "module": "./internal/dist/valbuild-shared-internal.esm.js",
19
23
  "default": "./internal/dist/valbuild-shared-internal.cjs.js"
@@ -24,6 +28,7 @@
24
28
  "preconstruct": {
25
29
  "entrypoints": [
26
30
  "./index.ts",
31
+ "./client/index.ts",
27
32
  "./internal/index.ts"
28
33
  ],
29
34
  "exports": true
@@ -37,12 +42,15 @@
37
42
  "files": [
38
43
  "CHANGELOG.md",
39
44
  "dist",
45
+ "client/dist",
46
+ "client/package.json",
40
47
  "internal/dist",
41
48
  "internal/package.json"
42
49
  ],
43
50
  "devDependencies": {
44
51
  "typescript": "^6.0.3"
45
52
  },
53
+ "sideEffects": false,
46
54
  "scripts": {
47
55
  "typecheck": "tsc --noEmit",
48
56
  "test": "jest"