@prezly/theme-kit-core 10.8.0 → 10.9.1
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/build/content-delivery/ContentDelivery.cjs +87 -71
- package/build/content-delivery/ContentDelivery.d.ts +2 -0
- package/build/content-delivery/ContentDelivery.mjs +87 -71
- package/build/content-delivery/ContentDelivery.test.cjs +284 -0
- package/build/content-delivery/ContentDelivery.test.mjs +282 -0
- package/build/content-delivery/RequestCoalescer.cjs +70 -0
- package/build/content-delivery/RequestCoalescer.d.ts +13 -0
- package/build/content-delivery/RequestCoalescer.mjs +63 -0
- package/build/content-delivery/RequestCoalescer.test.cjs +151 -0
- package/build/content-delivery/RequestCoalescer.test.mjs +149 -0
- package/build/content-delivery/cache/memory.cjs +15 -8
- package/build/content-delivery/cache/memory.mjs +15 -8
- package/build/galleries.cjs +2 -4
- package/build/galleries.mjs +2 -4
- package/build/http/HttpClient.cjs +12 -3
- package/build/http/HttpClient.mjs +12 -3
- package/build/metadata/getAlternateLanguageLinks.cjs +16 -7
- package/build/metadata/getAlternateLanguageLinks.mjs +16 -7
- package/build/metadata/getAlternateLanguageLinks.test.cjs +4 -6
- package/build/metadata/getAlternateLanguageLinks.test.mjs +4 -6
- package/build/privacy-portal.cjs +6 -7
- package/build/privacy-portal.mjs +6 -7
- package/build/resolvable.cjs +1 -1
- package/build/resolvable.mjs +1 -1
- package/build/routing/Route.cjs +14 -7
- package/build/routing/Route.mjs +14 -7
- package/build/routing/Router.cjs +19 -13
- package/build/routing/Router.mjs +19 -13
- package/build/routing/utils/generateUrlFromPattern.cjs +3 -6
- package/build/routing/utils/generateUrlFromPattern.mjs +3 -6
- package/build/routing/utils/getShortestLocaleSlug.cjs +5 -6
- package/build/routing/utils/getShortestLocaleSlug.mjs +5 -6
- package/build/sitemap/build.cjs +1 -3
- package/build/sitemap/build.mjs +1 -3
- package/build/sitemap/generate.cjs +64 -44
- package/build/sitemap/generate.d.ts +6 -1
- package/build/sitemap/generate.mjs +63 -44
- package/build/sitemap/index.cjs +6 -0
- package/build/sitemap/index.d.ts +1 -1
- package/build/sitemap/index.mjs +1 -1
- package/build/sitemap/types.d.ts +14 -0
- package/package.json +76 -77
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
var _excluded = ["locale"];
|
|
2
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); 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; } }
|
|
5
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
7
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
2
8
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
10
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -17,7 +23,12 @@ export function generate(_x, _x2) {
|
|
|
17
23
|
}
|
|
18
24
|
function _generate() {
|
|
19
25
|
_generate = _asyncToGenerator(function* (context, options) {
|
|
20
|
-
var
|
|
26
|
+
var _yield$AsyncResolvabl = yield AsyncResolvable.resolve(context.newsroom, context.locales, context.categories, context.stories),
|
|
27
|
+
_yield$AsyncResolvabl2 = _slicedToArray(_yield$AsyncResolvabl, 4),
|
|
28
|
+
newsroom = _yield$AsyncResolvabl2[0],
|
|
29
|
+
locales = _yield$AsyncResolvabl2[1],
|
|
30
|
+
categories = _yield$AsyncResolvabl2[2],
|
|
31
|
+
stories = _yield$AsyncResolvabl2[3];
|
|
21
32
|
var resolvedContext = {
|
|
22
33
|
newsroom,
|
|
23
34
|
locales,
|
|
@@ -36,14 +47,14 @@ function generateHomepageEntries(_x3, _x4) {
|
|
|
36
47
|
}
|
|
37
48
|
function _generateHomepageEntries() {
|
|
38
49
|
_generateHomepageEntries = _asyncToGenerator(function* (context, _ref) {
|
|
39
|
-
var
|
|
40
|
-
priority = guessPriority,
|
|
41
|
-
changeFrequency =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
var _ref$priority = _ref.priority,
|
|
51
|
+
priority = _ref$priority === void 0 ? guessPriority : _ref$priority,
|
|
52
|
+
_ref$changeFrequency = _ref.changeFrequency,
|
|
53
|
+
changeFrequency = _ref$changeFrequency === void 0 ? guessChangeFrequency : _ref$changeFrequency,
|
|
54
|
+
_ref$lastModified = _ref.lastModified,
|
|
55
|
+
lastModified = _ref$lastModified === void 0 ? guessLastModified : _ref$lastModified;
|
|
56
|
+
var locales = context.locales,
|
|
57
|
+
generateUrl = context.generateUrl;
|
|
47
58
|
var entries = locales.map(localeCode => ({
|
|
48
59
|
locale: localeCode,
|
|
49
60
|
url: generateUrl('index', {
|
|
@@ -54,6 +65,9 @@ function _generateHomepageEntries() {
|
|
|
54
65
|
}),
|
|
55
66
|
changeFrequency: changeFrequency('index', {
|
|
56
67
|
localeCode
|
|
68
|
+
}),
|
|
69
|
+
lastModified: lastModified('index', {
|
|
70
|
+
localeCode
|
|
57
71
|
})
|
|
58
72
|
})).filter(isNonEmptyUrl);
|
|
59
73
|
return withAlternateLinks(entries);
|
|
@@ -65,15 +79,15 @@ function generateStoriesEntries(_x5, _x6) {
|
|
|
65
79
|
}
|
|
66
80
|
function _generateStoriesEntries() {
|
|
67
81
|
_generateStoriesEntries = _asyncToGenerator(function* (context, _ref2) {
|
|
68
|
-
var
|
|
69
|
-
priority = guessPriority,
|
|
70
|
-
changeFrequency =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
82
|
+
var _ref2$priority = _ref2.priority,
|
|
83
|
+
priority = _ref2$priority === void 0 ? guessPriority : _ref2$priority,
|
|
84
|
+
_ref2$changeFrequency = _ref2.changeFrequency,
|
|
85
|
+
changeFrequency = _ref2$changeFrequency === void 0 ? guessChangeFrequency : _ref2$changeFrequency,
|
|
86
|
+
_ref2$lastModified = _ref2.lastModified,
|
|
87
|
+
lastModified = _ref2$lastModified === void 0 ? guessLastModified : _ref2$lastModified;
|
|
88
|
+
var locales = context.locales,
|
|
89
|
+
stories = context.stories,
|
|
90
|
+
generateUrl = context.generateUrl;
|
|
77
91
|
var entries = stories.filter(story => locales.includes(story.culture.code)).map(story => {
|
|
78
92
|
var params = _objectSpread(_objectSpread({}, story), {}, {
|
|
79
93
|
localeCode: story.culture.code
|
|
@@ -82,7 +96,8 @@ function _generateStoriesEntries() {
|
|
|
82
96
|
locale: story.culture.code,
|
|
83
97
|
url: generateUrl('story', params),
|
|
84
98
|
priority: priority('story', params),
|
|
85
|
-
changeFrequency: changeFrequency('story', params)
|
|
99
|
+
changeFrequency: changeFrequency('story', params),
|
|
100
|
+
lastModified: lastModified('story', params)
|
|
86
101
|
};
|
|
87
102
|
}).filter(isNonEmptyUrl);
|
|
88
103
|
return withAlternateLinks(entries);
|
|
@@ -94,19 +109,17 @@ function generateCategoriesEntries(_x7, _x8) {
|
|
|
94
109
|
}
|
|
95
110
|
function _generateCategoriesEntries() {
|
|
96
111
|
_generateCategoriesEntries = _asyncToGenerator(function* (context, _ref3) {
|
|
97
|
-
var
|
|
98
|
-
priority = guessPriority,
|
|
99
|
-
changeFrequency =
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
112
|
+
var _ref3$priority = _ref3.priority,
|
|
113
|
+
priority = _ref3$priority === void 0 ? guessPriority : _ref3$priority,
|
|
114
|
+
_ref3$changeFrequency = _ref3.changeFrequency,
|
|
115
|
+
changeFrequency = _ref3$changeFrequency === void 0 ? guessChangeFrequency : _ref3$changeFrequency,
|
|
116
|
+
_ref3$lastModified = _ref3.lastModified,
|
|
117
|
+
lastModified = _ref3$lastModified === void 0 ? guessLastModified : _ref3$lastModified;
|
|
118
|
+
var locales = context.locales,
|
|
119
|
+
categories = context.categories,
|
|
120
|
+
generateUrl = context.generateUrl;
|
|
106
121
|
var entries = categories.flatMap(category => Category.translations(category).filter(_ref6 => {
|
|
107
|
-
var
|
|
108
|
-
locale
|
|
109
|
-
} = _ref6;
|
|
122
|
+
var locale = _ref6.locale;
|
|
110
123
|
return locales.includes(locale);
|
|
111
124
|
}).map(translation => {
|
|
112
125
|
var params = _objectSpread(_objectSpread({}, translation), {}, {
|
|
@@ -116,7 +129,8 @@ function _generateCategoriesEntries() {
|
|
|
116
129
|
locale: translation.locale,
|
|
117
130
|
url: generateUrl('category', params),
|
|
118
131
|
priority: priority('category', params),
|
|
119
|
-
changeFrequency: changeFrequency('category', params)
|
|
132
|
+
changeFrequency: changeFrequency('category', params),
|
|
133
|
+
lastModified: lastModified('category', params)
|
|
120
134
|
};
|
|
121
135
|
})).filter(isNonEmptyUrl);
|
|
122
136
|
return withAlternateLinks(entries);
|
|
@@ -128,15 +142,15 @@ function generateMediaEntries(_x9, _x0) {
|
|
|
128
142
|
}
|
|
129
143
|
function _generateMediaEntries() {
|
|
130
144
|
_generateMediaEntries = _asyncToGenerator(function* (context, _ref4) {
|
|
131
|
-
var
|
|
132
|
-
priority = guessPriority,
|
|
133
|
-
changeFrequency =
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
145
|
+
var _ref4$priority = _ref4.priority,
|
|
146
|
+
priority = _ref4$priority === void 0 ? guessPriority : _ref4$priority,
|
|
147
|
+
_ref4$changeFrequency = _ref4.changeFrequency,
|
|
148
|
+
changeFrequency = _ref4$changeFrequency === void 0 ? guessChangeFrequency : _ref4$changeFrequency,
|
|
149
|
+
_ref4$lastModified = _ref4.lastModified,
|
|
150
|
+
lastModified = _ref4$lastModified === void 0 ? guessLastModified : _ref4$lastModified;
|
|
151
|
+
var newsroom = context.newsroom,
|
|
152
|
+
locales = context.locales,
|
|
153
|
+
generateUrl = context.generateUrl;
|
|
140
154
|
if (newsroom.public_galleries_number === 0) return [];
|
|
141
155
|
var entries = locales.map(localeCode => ({
|
|
142
156
|
locale: localeCode,
|
|
@@ -148,6 +162,9 @@ function _generateMediaEntries() {
|
|
|
148
162
|
}),
|
|
149
163
|
changeFrequency: changeFrequency('media', {
|
|
150
164
|
localeCode
|
|
165
|
+
}),
|
|
166
|
+
lastModified: lastModified('media', {
|
|
167
|
+
localeCode
|
|
151
168
|
})
|
|
152
169
|
})).filter(isNonEmptyUrl);
|
|
153
170
|
return withAlternateLinks(entries);
|
|
@@ -163,11 +180,13 @@ export function guessPriority(routeName) {
|
|
|
163
180
|
if (routeName === 'category') return 0.8;
|
|
164
181
|
return 0.7;
|
|
165
182
|
}
|
|
183
|
+
export function guessLastModified(routeName, params) {
|
|
184
|
+
if (routeName === 'story') return params.updated_at;
|
|
185
|
+
return undefined;
|
|
186
|
+
}
|
|
166
187
|
export function withAlternateLinks(entries) {
|
|
167
188
|
return entries.map(_ref5 => {
|
|
168
|
-
var
|
|
169
|
-
locale
|
|
170
|
-
} = _ref5,
|
|
189
|
+
var locale = _ref5.locale,
|
|
171
190
|
entry = _objectWithoutProperties(_ref5, _excluded);
|
|
172
191
|
return _objectSpread(_objectSpread({}, entry), {}, {
|
|
173
192
|
alternate: entries.filter(alt => alt.locale !== locale).map(alt => ({
|
package/build/sitemap/index.cjs
CHANGED
|
@@ -21,6 +21,12 @@ Object.defineProperty(exports, "guessChangeFrequency", {
|
|
|
21
21
|
return _generate.guessChangeFrequency;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "guessLastModified", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _generate.guessLastModified;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
24
30
|
Object.defineProperty(exports, "guessPriority", {
|
|
25
31
|
enumerable: true,
|
|
26
32
|
get: function get() {
|
package/build/sitemap/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type * from './types';
|
|
2
2
|
export { build } from './build';
|
|
3
|
-
export { type AsyncResolvableContext, type Options, generate, guessChangeFrequency, guessPriority, } from './generate';
|
|
3
|
+
export { type AsyncResolvableContext, type Options, generate, guessChangeFrequency, guessLastModified, guessPriority, } from './generate';
|
|
4
4
|
export { stringify } from './stringify';
|
package/build/sitemap/index.mjs
CHANGED
package/build/sitemap/types.d.ts
CHANGED
|
@@ -64,4 +64,18 @@ export type PriorityFn = {
|
|
|
64
64
|
localeCode: Locale.Code;
|
|
65
65
|
}): Priority | undefined;
|
|
66
66
|
};
|
|
67
|
+
export type LastModifiedFn = {
|
|
68
|
+
(routeName: 'index', params: {
|
|
69
|
+
localeCode: Locale.Code;
|
|
70
|
+
}): string | Date | undefined;
|
|
71
|
+
(routeName: 'story', params: {
|
|
72
|
+
localeCode: Locale.Code;
|
|
73
|
+
} & StoryRef): string | Date | undefined;
|
|
74
|
+
(routeName: 'category', params: {
|
|
75
|
+
localeCode: Locale.Code;
|
|
76
|
+
} & TranslatedCategory): string | Date | undefined;
|
|
77
|
+
(routeName: 'media', params: {
|
|
78
|
+
localeCode: Locale.Code;
|
|
79
|
+
}): string | Date | undefined;
|
|
80
|
+
};
|
|
67
81
|
export {};
|
package/package.json
CHANGED
|
@@ -1,78 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
2
|
+
"name": "@prezly/theme-kit-core",
|
|
3
|
+
"version": "10.9.1",
|
|
4
|
+
"description": "Data layer and utility library for developing Prezly themes with JavaScript",
|
|
5
|
+
"main": "build/index.mjs",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "build/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"build",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./build/index.d.ts",
|
|
15
|
+
"require": "./build/index.cjs",
|
|
16
|
+
"default": "./build/index.mjs"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"@prezly/sdk": "21.12.0 || ^23.x"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@prezly/uploadcare": "2.4.4",
|
|
24
|
+
"@technically/is-not-undefined": "^1.0.0",
|
|
25
|
+
"@technically/omit-undefined": "^1.0.4",
|
|
26
|
+
"parse-data-url": "^6.0.0",
|
|
27
|
+
"url-pattern": "^1.0.3",
|
|
28
|
+
"@prezly/theme-kit-intl": "^10.9.1"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/parse-data-url": "3.0.2"
|
|
32
|
+
},
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">= 16.x",
|
|
35
|
+
"npm": ">= 8.x"
|
|
36
|
+
},
|
|
37
|
+
"devEngines": {
|
|
38
|
+
"node": ">= 16.x",
|
|
39
|
+
"npm": ">= 8.x"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"prezly"
|
|
43
|
+
],
|
|
44
|
+
"author": "Prezly Team",
|
|
45
|
+
"license": "MIT",
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://github.com/prezly/theme-kit-js/issues"
|
|
48
|
+
},
|
|
49
|
+
"homepage": "https://github.com/prezly/theme-kit-js/tree/main/packages/core#readme",
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "git+https://github.com/prezly/theme-kit-js.git",
|
|
53
|
+
"directory": "packages/core"
|
|
54
|
+
},
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public"
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"prebuild": "rimraf --glob build/* *.tsbuildinfo",
|
|
60
|
+
"build": "pnpm build:types && pnpm build:esm && pnpm build:cjs",
|
|
61
|
+
"build:types": "tsc --project .",
|
|
62
|
+
"build:esm": "babel --config-file=../../babel.esm.json src/ --extensions=.ts --out-dir=build/ --out-file-extension=.mjs",
|
|
63
|
+
"build:cjs": "babel --config-file=../../babel.cjs.json src/ --extensions=.ts --out-dir=build/ --out-file-extension=.cjs",
|
|
64
|
+
"dev": "tsc --watch --preserveWatchOutput --project .",
|
|
65
|
+
"typecheck": "tsc --noEmit --emitDeclarationOnly false --incremental --project .",
|
|
66
|
+
"lint": "biome lint src",
|
|
67
|
+
"lint:fix": "biome lint --write src",
|
|
68
|
+
"format": "biome format src",
|
|
69
|
+
"format:fix": "biome format --write src",
|
|
70
|
+
"test": "pnpm test:unit && pnpm test:build",
|
|
71
|
+
"test:unit": "jest",
|
|
72
|
+
"test:build": "pnpm test:build:cjs && pnpm test:build:esm && pnpm test:build:types",
|
|
73
|
+
"test:build:types": "tsc --esModuleInterop --noEmit --target esnext --moduleResolution node build/index.d.ts",
|
|
74
|
+
"test:build:esm": "node tests/test-build.mjs",
|
|
75
|
+
"test:build:cjs": "node tests/test-build.cjs"
|
|
76
|
+
}
|
|
77
|
+
}
|