@tryghost/mg-tinynews 0.10.8-0 → 0.11.0-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.
- package/README.md +112 -30
- package/build/index.d.ts +8 -0
- package/build/index.js +5 -0
- package/build/index.js.map +1 -0
- package/build/lib/ingest.d.ts +18 -0
- package/build/lib/ingest.js +91 -0
- package/build/lib/ingest.js.map +1 -0
- package/build/lib/json-to-html.d.ts +35 -0
- package/build/lib/json-to-html.js +238 -0
- package/build/lib/json-to-html.js.map +1 -0
- package/build/lib/map.d.ts +26 -0
- package/build/lib/map.js +209 -0
- package/build/lib/map.js.map +1 -0
- package/build/lib/process.d.ts +76 -0
- package/build/lib/process.js +235 -0
- package/build/lib/process.js.map +1 -0
- package/build/lib/text.d.ts +6 -0
- package/build/lib/text.js +60 -0
- package/build/lib/text.js.map +1 -0
- package/build/lib/types.d.ts +112 -0
- package/build/lib/types.js +3 -0
- package/build/lib/types.js.map +1 -0
- package/build/test/helpers.d.ts +25 -0
- package/build/test/helpers.js +74 -0
- package/build/test/helpers.js.map +1 -0
- package/build/test/ingest.test.d.ts +1 -0
- package/build/test/ingest.test.js +134 -0
- package/build/test/ingest.test.js.map +1 -0
- package/build/test/json-to-html.test.d.ts +1 -0
- package/build/test/json-to-html.test.js +662 -0
- package/build/test/json-to-html.test.js.map +1 -0
- package/build/test/map.test.d.ts +1 -0
- package/build/test/map.test.js +367 -0
- package/build/test/map.test.js.map +1 -0
- package/build/test/process.test.d.ts +1 -0
- package/build/test/process.test.js +261 -0
- package/build/test/process.test.js.map +1 -0
- package/package.json +24 -10
- package/index.js +0 -7
- package/lib/json-to-html.js +0 -324
- package/lib/mapper.js +0 -368
- package/lib/text.js +0 -95
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import assert from 'node:assert/strict';
|
|
2
|
+
import { describe, it } from 'node:test';
|
|
3
|
+
import { RecordDataError } from '@tryghost/mg-context';
|
|
4
|
+
import { articleTags, authorName, emailAuthor, newsletterUrl, personAuthor, processArticle, processNewsletter, processNewsletterContent, textOnly } from '../index.js';
|
|
5
|
+
import { text } from '../lib/process.js';
|
|
6
|
+
import { fixture } from './helpers.js';
|
|
7
|
+
const articlesFixture = await fixture('articles.json');
|
|
8
|
+
const pagesFixture = await fixture('pages.json');
|
|
9
|
+
const newslettersFixture = await fixture('newsletters.json');
|
|
10
|
+
const authorSingleFixture = await fixture('author-single.json');
|
|
11
|
+
const authorMultipleFixture = await fixture('author-multiple.json');
|
|
12
|
+
/** An article like the first fixture, with its first translation changed by `translation`. */
|
|
13
|
+
function article(values = {}, translation = {}) {
|
|
14
|
+
const base = structuredClone(articlesFixture[0]);
|
|
15
|
+
return { ...base, ...values, translations: [{ ...base.translations[0], ...translation }] };
|
|
16
|
+
}
|
|
17
|
+
describe('processArticle', function () {
|
|
18
|
+
it('Can process posts', function () {
|
|
19
|
+
const processed = processArticle(articlesFixture[0], 'post');
|
|
20
|
+
assert.equal(processed.url, 'https://demo-site.example.com/articles/testing/all-embeds-and-formatting');
|
|
21
|
+
assert.deepEqual(processed.fields, {
|
|
22
|
+
title: 'All embeds and Formatting',
|
|
23
|
+
slug: 'all-embeds-and-formatting',
|
|
24
|
+
type: 'post',
|
|
25
|
+
status: 'published',
|
|
26
|
+
visibility: 'public',
|
|
27
|
+
html: '<p>Example text </p>',
|
|
28
|
+
custom_excerpt: 'An article that shows Google Docs integration elements',
|
|
29
|
+
og_title: 'FB Title - All Embeds and Formatting',
|
|
30
|
+
og_description: 'FB desc - An article that shows Google Docs integration elements',
|
|
31
|
+
twitter_title: 'TW Title - All Embeds and Formatting',
|
|
32
|
+
twitter_description: 'TW desc - An article that shows Google Docs integration elements',
|
|
33
|
+
meta_title: 'All embeds and Formatting',
|
|
34
|
+
meta_description: 'An article that shows Google Docs integration elements',
|
|
35
|
+
feature_image: 'https://assets.example.com/demo-site/all-embeds-and-formatting/imagekix.mpef3nc309qu.jpg',
|
|
36
|
+
feature_image_alt: 'Featured image. Alt text is also the caption',
|
|
37
|
+
feature_image_caption: 'Featured image. Alt text is also the caption'
|
|
38
|
+
});
|
|
39
|
+
assert.equal(processed.published.toISOString(), '2023-03-24T19:45:24.257Z');
|
|
40
|
+
assert.equal(processed.created, processed.published);
|
|
41
|
+
assert.equal(processed.updated.toISOString(), '2023-03-24T19:55:47.250Z');
|
|
42
|
+
assert.deepEqual(processed.tags, [
|
|
43
|
+
{ name: 'test', slug: 'test' },
|
|
44
|
+
{ name: 'embeds', slug: 'embeds' },
|
|
45
|
+
{ name: 'Images', slug: 'images' },
|
|
46
|
+
{ name: 'Testing', slug: 'testing' },
|
|
47
|
+
{ name: '#tinynews', slug: 'hash-tinynews' }
|
|
48
|
+
]);
|
|
49
|
+
});
|
|
50
|
+
it('Trims titles and leaves blank fields and image alt text empty', function () {
|
|
51
|
+
const processed = processArticle(articlesFixture[1], 'post');
|
|
52
|
+
assert.equal(processed.fields.title, 'Images');
|
|
53
|
+
assert.equal(processed.fields.og_title, null);
|
|
54
|
+
assert.equal(processed.fields.twitter_description, null);
|
|
55
|
+
assert.equal(processed.fields.feature_image, 'https://assets.example.com/demo-site/images/imagekix.h4uzg1gckmrv.jpg');
|
|
56
|
+
assert.equal(processed.fields.feature_image_alt, null);
|
|
57
|
+
assert.equal(processed.fields.feature_image_caption, null);
|
|
58
|
+
assert.equal('feature_image' in processArticle(articlesFixture[2], 'post').fields, false);
|
|
59
|
+
});
|
|
60
|
+
it('Can process pages, taking the feature image from a mainImage block', function () {
|
|
61
|
+
const processed = processArticle(pagesFixture[0], 'page');
|
|
62
|
+
assert.equal(processed.fields.type, 'page');
|
|
63
|
+
assert.equal(processed.fields.feature_image, 'https://assets.example.com/demo-site/about/team.jpg');
|
|
64
|
+
assert.equal(processed.fields.html, '<h2>Who we are </h2><p>A small newsroom. </p>');
|
|
65
|
+
assert.equal(processed.url, 'https://demo-site.example.com/about');
|
|
66
|
+
assert.deepEqual(processed.tags, [{ name: '#tinynews', slug: 'hash-tinynews' }]);
|
|
67
|
+
const withMainImage = processArticle({
|
|
68
|
+
...pagesFixture[0],
|
|
69
|
+
translations: [
|
|
70
|
+
{ ...pagesFixture[0].translations[0], main_image: articlesFixture[0].translations[0].main_image }
|
|
71
|
+
]
|
|
72
|
+
}, 'page');
|
|
73
|
+
assert.equal(withMainImage.fields.feature_image, 'https://assets.example.com/demo-site/about/team.jpg');
|
|
74
|
+
assert.equal(withMainImage.fields.feature_image_alt, 'Featured image. Alt text is also the caption');
|
|
75
|
+
const withoutImage = processArticle({
|
|
76
|
+
...pagesFixture[0],
|
|
77
|
+
translations: [{ ...pagesFixture[0].translations[0], content: [{ type: 'mainImage', children: [] }] }]
|
|
78
|
+
}, 'page');
|
|
79
|
+
assert.equal('feature_image' in withoutImage.fields, false);
|
|
80
|
+
assert.equal(processArticle(article({}, { content: 'Plain <b>HTML</b>' }), 'page').fields.html, 'Plain <b>HTML</b>');
|
|
81
|
+
});
|
|
82
|
+
it('Processes undated drafts and falls back for dates, slugs and titles', function () {
|
|
83
|
+
const draft = processArticle(pagesFixture[1], 'page');
|
|
84
|
+
assert.equal(draft.fields.status, 'draft');
|
|
85
|
+
assert.equal(draft.published, null);
|
|
86
|
+
assert.equal(draft.updated, null);
|
|
87
|
+
assert.equal(draft.url, null);
|
|
88
|
+
const updatedOnly = processArticle(article({}, { first_published_at: 'not a date' }), 'post');
|
|
89
|
+
assert.equal(updatedOnly.published.toISOString(), '2023-03-24T19:55:47.250Z');
|
|
90
|
+
const untitled = processArticle(article({ slug: ' ' }, { headline: null, content: null }), 'post');
|
|
91
|
+
assert.equal(untitled.fields.title, '(Untitled)');
|
|
92
|
+
assert.equal(untitled.fields.slug, 'untitled');
|
|
93
|
+
assert.equal(untitled.fields.html, '');
|
|
94
|
+
assert.equal(processArticle(article({ slug: null }, { headline: 'A Title' }), 'post').fields.slug, 'a-title');
|
|
95
|
+
});
|
|
96
|
+
it('Adds the Facebook SDK for Facebook posts', function () {
|
|
97
|
+
const processed = processArticle(article({}, { content: [{ type: 'embed', link: 'https://www.facebook.com/x', html: '<div class="fb-post"></div>' }] }), 'post');
|
|
98
|
+
assert.match(processed.fields.html, /class="fb-post"/);
|
|
99
|
+
assert.match(processed.fields.codeinjection_head, /connect\.facebook\.net/);
|
|
100
|
+
assert.equal('codeinjection_head' in processArticle(articlesFixture[0], 'post').fields, false);
|
|
101
|
+
});
|
|
102
|
+
it('Passes content blocks it cannot convert to onUnhandled', function () {
|
|
103
|
+
const reasons = [];
|
|
104
|
+
processArticle(article({}, { content: [{ type: 'table' }] }), 'post', {
|
|
105
|
+
onUnhandled: reason => reasons.push(reason)
|
|
106
|
+
});
|
|
107
|
+
assert.deepEqual(reasons, ['Unhandled block type: table']);
|
|
108
|
+
});
|
|
109
|
+
it('Rejects an item without a translation', function () {
|
|
110
|
+
assert.throws(() => processArticle({ ...articlesFixture[0], translations: [] }, 'post'), (error) => {
|
|
111
|
+
assert.ok(error instanceof RecordDataError);
|
|
112
|
+
assert.equal(error.message, 'Article has no translation');
|
|
113
|
+
return true;
|
|
114
|
+
});
|
|
115
|
+
assert.throws(() => processArticle({ ...articlesFixture[0], translations: null }, 'page'), /Page has no translation/);
|
|
116
|
+
assert.throws(() => processArticle({ ...articlesFixture[0], translations: [null] }, 'post'), /Article has no translation/);
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
describe('articleTags', function () {
|
|
120
|
+
it('Makes unpublished categories and tags internal, after public tags', function () {
|
|
121
|
+
const tags = articleTags({
|
|
122
|
+
category: { slug: 'news', title: 'News', published: false },
|
|
123
|
+
tags: [
|
|
124
|
+
{ tag: { slug: 'local', published: true, tag_translations: [{ title: 'Local' }] } },
|
|
125
|
+
{ tag: { slug: 'hidden', published: false, tag_translations: [{ title: 'Hidden' }] } },
|
|
126
|
+
{ tag: { slug: 'local', tag_translations: [{ title: 'Local again' }] } },
|
|
127
|
+
{ tag: { slug: 'No Title', tag_translations: [] } },
|
|
128
|
+
{ tag: { slug: null, tag_translations: [{ title: 'Only A Title' }] } },
|
|
129
|
+
{ tag: { slug: ' ', tag_translations: [{ title: ' ' }] } },
|
|
130
|
+
{ tag: null },
|
|
131
|
+
null
|
|
132
|
+
]
|
|
133
|
+
});
|
|
134
|
+
assert.deepEqual(tags, [
|
|
135
|
+
{ name: 'Local', slug: 'local' },
|
|
136
|
+
{ name: 'No Title', slug: 'no-title' },
|
|
137
|
+
{ name: 'Only A Title', slug: 'only-a-title' },
|
|
138
|
+
{ name: '#News', slug: 'hash-news' },
|
|
139
|
+
{ name: '#Hidden', slug: 'hash-hidden' },
|
|
140
|
+
{ name: '#tinynews', slug: 'hash-tinynews' }
|
|
141
|
+
]);
|
|
142
|
+
});
|
|
143
|
+
it('Has only #tinynews without a category or tags', function () {
|
|
144
|
+
assert.deepEqual(articleTags({ category: null }), [{ name: '#tinynews', slug: 'hash-tinynews' }]);
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
describe('processNewsletter', function () {
|
|
148
|
+
it('Can process newsletters', function () {
|
|
149
|
+
const processed = processNewsletter(newslettersFixture.data.newsletter_editions[0], 'https://demo-site.example.com/');
|
|
150
|
+
assert.deepEqual(processed.fields, {
|
|
151
|
+
title: 'Weekly roundup #1',
|
|
152
|
+
slug: 'weekly-roundup-1',
|
|
153
|
+
type: 'post',
|
|
154
|
+
status: 'published',
|
|
155
|
+
visibility: 'public',
|
|
156
|
+
html: '<!--kg-card-begin: html--><h2>Top stories</h2><p>Story one</p><p>More text</p><!--kg-card-end: html-->',
|
|
157
|
+
custom_excerpt: "The week's news"
|
|
158
|
+
});
|
|
159
|
+
assert.equal(processed.url, 'https://demo-site.example.com/newsletters/weekly-roundup-1');
|
|
160
|
+
assert.equal(processed.published.toISOString(), '2023-05-01T09:00:00.000Z');
|
|
161
|
+
assert.equal(processed.updated, processed.published);
|
|
162
|
+
assert.equal(processed.created.toISOString(), '2023-04-30T15:00:00.000Z');
|
|
163
|
+
assert.deepEqual(processed.tags, [
|
|
164
|
+
{ name: '#newsletter', slug: 'hash-newsletter' },
|
|
165
|
+
{ name: '#tinynews', slug: 'hash-tinynews' }
|
|
166
|
+
]);
|
|
167
|
+
});
|
|
168
|
+
it('Falls back for slugs, content and dates', function () {
|
|
169
|
+
const processed = processNewsletter({
|
|
170
|
+
headline: 'No Slug',
|
|
171
|
+
content: null,
|
|
172
|
+
newsletter_published_at: null,
|
|
173
|
+
newsletter_created_at: '2023-01-02 03:04:05'
|
|
174
|
+
}, 'https://demo-site.example.com');
|
|
175
|
+
assert.equal(processed.fields.slug, 'no-slug');
|
|
176
|
+
assert.equal(processed.fields.html, '');
|
|
177
|
+
assert.equal(processed.fields.custom_excerpt, null);
|
|
178
|
+
assert.equal(processed.url, null);
|
|
179
|
+
assert.equal(processed.published.toISOString(), '2023-01-02T03:04:05.000Z');
|
|
180
|
+
assert.deepEqual(processed.created, processed.published);
|
|
181
|
+
const undated = processNewsletter({}, 'https://demo-site.example.com');
|
|
182
|
+
assert.equal(undated.fields.title, '(Untitled)');
|
|
183
|
+
assert.equal(undated.published, null);
|
|
184
|
+
assert.equal(undated.created, null);
|
|
185
|
+
});
|
|
186
|
+
it('Gives newsletters their URL on the live site', function () {
|
|
187
|
+
assert.equal(newsletterUrl('https://example.com/news//', { slug: ' first ' }), 'https://example.com/news/newsletters/first');
|
|
188
|
+
assert.equal(newsletterUrl('https://example.com', { slug: '' }), null);
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
describe('processNewsletterContent', function () {
|
|
192
|
+
it('Keeps basic formatting and removes Letterhead links and empty paragraphs', function () {
|
|
193
|
+
const html = processNewsletterContent('<p>Text <img src="https://example.com/a.jpg" alt="A" onerror="x"><a href="https://example.com/empty"></a></p><p><br></p><p> </p><p><a href="https://letterhead.example">Made with Letterhead</a></p><script>alert(1)</script><span>Span</span>');
|
|
194
|
+
assert.equal(html, '<!--kg-card-begin: html--><p>Text <img src="https://example.com/a.jpg" alt="A"><a href="https://example.com/empty"></a></p>Span<!--kg-card-end: html-->');
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
describe('Authors', function () {
|
|
198
|
+
it('Can read author info', function () {
|
|
199
|
+
assert.deepEqual(personAuthor(authorSingleFixture.data.authors[0]), {
|
|
200
|
+
key: 'email:lorem@ipsum.com',
|
|
201
|
+
name: 'Lorem Ipsum',
|
|
202
|
+
slug: 'lorem-ipsum',
|
|
203
|
+
email: 'lorem@ipsum.com',
|
|
204
|
+
profile_image: 'https://example.com/lorem.jpg',
|
|
205
|
+
bio: 'Lorem ipsum dolor simet'
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
it('Enriches author data if more is available in the authors file', function () {
|
|
209
|
+
const nested = articlesFixture[0].author[0].author;
|
|
210
|
+
assert.deepEqual(personAuthor(nested), {
|
|
211
|
+
key: 'name:Dolor Simet',
|
|
212
|
+
name: 'Dolor Simet',
|
|
213
|
+
slug: 'dolor-simet',
|
|
214
|
+
email: null
|
|
215
|
+
});
|
|
216
|
+
assert.deepEqual(personAuthor(nested, authorMultipleFixture.data.authors[1]), {
|
|
217
|
+
key: 'email:dolor@simet.com',
|
|
218
|
+
name: 'Dolor Simet',
|
|
219
|
+
slug: 'dolor-simet',
|
|
220
|
+
email: 'dolor@simet.com',
|
|
221
|
+
profile_image: 'https://example.com/dolor.jpg',
|
|
222
|
+
bio: 'Lorem ipsum dolor simet'
|
|
223
|
+
});
|
|
224
|
+
assert.deepEqual(personAuthor({
|
|
225
|
+
first_names: 'Ann',
|
|
226
|
+
last_name: null,
|
|
227
|
+
email: 'Ann@Example.com',
|
|
228
|
+
photoUrl: 'https://example.com/ann.jpg',
|
|
229
|
+
translations: [{ bio: '<p>Writes <b>things</b></p>' }]
|
|
230
|
+
}, { first_names: 'Ann', email: ' ', translations: [{ bio: '<p></p>' }] }), {
|
|
231
|
+
key: 'email:ann@example.com',
|
|
232
|
+
name: 'Ann',
|
|
233
|
+
slug: 'ann',
|
|
234
|
+
email: 'Ann@Example.com',
|
|
235
|
+
profile_image: 'https://example.com/ann.jpg',
|
|
236
|
+
bio: 'Writes things'
|
|
237
|
+
});
|
|
238
|
+
assert.equal(personAuthor({ first_names: ' ', last_name: null }), null);
|
|
239
|
+
assert.equal(authorName({ last_name: 'Only' }), 'Only');
|
|
240
|
+
});
|
|
241
|
+
it('Names authors from created_by_email', function () {
|
|
242
|
+
assert.deepEqual(emailAuthor('John.Doe@Example.com'), {
|
|
243
|
+
key: 'email:john.doe@example.com',
|
|
244
|
+
name: 'John.Doe',
|
|
245
|
+
slug: 'john-doe',
|
|
246
|
+
email: 'John.Doe@Example.com'
|
|
247
|
+
});
|
|
248
|
+
assert.equal(emailAuthor(''), null);
|
|
249
|
+
assert.equal(emailAuthor('@example.com'), null);
|
|
250
|
+
assert.equal(emailAuthor(null), null);
|
|
251
|
+
});
|
|
252
|
+
});
|
|
253
|
+
describe('Helpers', function () {
|
|
254
|
+
it('Reads text', function () {
|
|
255
|
+
assert.equal(text(' a '), 'a');
|
|
256
|
+
assert.equal(text(' '), undefined);
|
|
257
|
+
assert.equal(text(1), undefined);
|
|
258
|
+
assert.equal(textOnly('<p>Some <em>text</em></p> '), 'Some text');
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
//# sourceMappingURL=process.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process.test.js","sourceRoot":"","sources":["../../src/test/process.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAC,QAAQ,EAAE,EAAE,EAAC,MAAM,WAAW,CAAC;AACvC,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,EACH,WAAW,EACX,UAAU,EACV,WAAW,EACX,aAAa,EACb,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,wBAAwB,EACxB,QAAQ,EACX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,OAAO,EAAC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AAE,MAAM,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qCAAqC,EAAE;QACtC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,sBAAsB,CAAC,EAAE;YAClD,GAAG,EAAE,4BAA4B;YACjC,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,sBAAsB;SAChC,CAAC,CAAC;QACH,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;QACpC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,CAAC;QAChD,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,SAAS,EAAE;IAChB,EAAE,CAAC,YAAY,EAAE;QACb,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,CAAC;QACjC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,CAAC;QACnC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;QACjC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,4BAA4B,CAAC,EAAE,WAAW,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/mg-tinynews",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0-0",
|
|
4
|
+
"description": "Migrate content from a Tiny News export to Ghost",
|
|
4
5
|
"repository": {
|
|
5
6
|
"type": "git",
|
|
6
7
|
"url": "git+https://github.com/TryGhost/migrate.git",
|
|
@@ -8,25 +9,38 @@
|
|
|
8
9
|
},
|
|
9
10
|
"author": "Ghost Foundation",
|
|
10
11
|
"license": "MIT",
|
|
11
|
-
"main": "index.js",
|
|
12
|
+
"main": "build/index.js",
|
|
12
13
|
"type": "module",
|
|
14
|
+
"types": "./build/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./build/index.d.ts",
|
|
18
|
+
"default": "./build/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
13
21
|
"files": [
|
|
14
|
-
"
|
|
15
|
-
"lib"
|
|
22
|
+
"build"
|
|
16
23
|
],
|
|
17
24
|
"publishConfig": {
|
|
18
25
|
"access": "public"
|
|
19
26
|
},
|
|
20
|
-
"devDependencies": {
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "24.19.2",
|
|
29
|
+
"c8": "12.0.0",
|
|
30
|
+
"typescript": "7.0.2"
|
|
31
|
+
},
|
|
21
32
|
"dependencies": {
|
|
22
|
-
"@tryghost/
|
|
23
|
-
"@tryghost/mg-utils": "0.
|
|
24
|
-
"@tryghost/
|
|
33
|
+
"@tryghost/mg-context": "0.12.0-0",
|
|
34
|
+
"@tryghost/mg-fs-utils": "0.27.0-0",
|
|
35
|
+
"@tryghost/mg-ghost-authors": "0.11.0-0",
|
|
36
|
+
"@tryghost/mg-utils": "0.12.0-0",
|
|
37
|
+
"@tryghost/string": "0.3.8",
|
|
25
38
|
"sanitize-html": "2.18.1",
|
|
26
39
|
"simple-dom": "1.4.0"
|
|
27
40
|
},
|
|
28
41
|
"scripts": {
|
|
29
|
-
"
|
|
30
|
-
"test": "node --test 'test/**/*.test.js'"
|
|
42
|
+
"build": "tsc --build",
|
|
43
|
+
"test": "c8 --src src --all --check-coverage --100 --exclude '**/test/**' --exclude '**/*.d.ts' node --test 'build/test/**/*.test.js'",
|
|
44
|
+
"test:local": "pnpm build && pnpm test"
|
|
31
45
|
}
|
|
32
46
|
}
|