diff --git a/.vscode/settings.json b/.vscode/settings.json index bea1682e..64fbe408 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,4 @@ { - "cSpell.words": ["noindex", "nofollow"] + "cSpell.words": ["noindex", "nofollow"], + "typescript.preferences.importModuleSpecifier": "relative" } diff --git a/package.json b/package.json index f30b9f83..0b77c4da 100644 --- a/package.json +++ b/package.json @@ -83,6 +83,8 @@ "husky": "4.3.8", "jest": "^29.5.0", "jest-environment-jsdom": "^29.5.0", + "lint-staged": "11.1.1", + "microbundle": "^0.15.1", "lint-staged": "13.2.3", "microbundle": "^0.14.2", "next": "^13.0.0", diff --git a/src/jsonld/article.tsx b/src/jsonld/article.tsx index aa67a6d5..7243a941 100644 --- a/src/jsonld/article.tsx +++ b/src/jsonld/article.tsx @@ -1,9 +1,9 @@ import React from 'react'; import { JsonLd, JsonLdProps } from './jsonld'; -import { setAuthor } from 'src/utils/schema/setAuthor'; -import { setPublisher } from 'src/utils/schema/setPublisher'; -import { ArticleAuthor } from 'src/types'; +import { setAuthor } from '../utils/schema/setAuthor'; +import { setPublisher } from '../utils/schema/setPublisher'; +import { ArticleAuthor } from '../types'; export interface ArticleJsonLdProps extends JsonLdProps { type?: 'Article' | 'BlogPosting' | 'NewsArticle' | 'Blog'; diff --git a/src/jsonld/brand.tsx b/src/jsonld/brand.tsx index 50a1944e..dab487f4 100644 --- a/src/jsonld/brand.tsx +++ b/src/jsonld/brand.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import type { AggregateRating } from 'src/types'; -import { setAggregateRating } from 'src/utils/schema/setAggregateRating'; +import type { AggregateRating } from '../types'; +import { setAggregateRating } from '../utils/schema/setAggregateRating'; import { JsonLd, JsonLdProps } from './jsonld'; diff --git a/src/jsonld/breadcrumb.tsx b/src/jsonld/breadcrumb.tsx index 1ccff01c..76d40e60 100644 --- a/src/jsonld/breadcrumb.tsx +++ b/src/jsonld/breadcrumb.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import type { ItemListElements } from 'src/types'; -import { setItemListElements } from 'src/utils/schema/setItemListElements'; +import type { ItemListElements } from '../types'; +import { setItemListElements } from '../utils/schema/setItemListElements'; import { JsonLd, JsonLdProps } from './jsonld'; diff --git a/src/jsonld/carousel.tsx b/src/jsonld/carousel.tsx index 18fc6cbc..8e12e24d 100644 --- a/src/jsonld/carousel.tsx +++ b/src/jsonld/carousel.tsx @@ -2,14 +2,14 @@ import React from 'react'; import { JsonLd, JsonLdProps } from './jsonld'; -import type { CourseJsonLdProps, RecipeJsonLdProps } from 'src/index'; -import type { Review, AggregateRating } from 'src/types'; -import { setReviews } from 'src/utils/schema/setReviews'; -import { setAuthor } from 'src/utils/schema/setAuthor'; -import { setNutrition } from 'src/utils/schema/setNutrition'; -import { setAggregateRating } from 'src/utils/schema/setAggregateRating'; -import { setVideo } from 'src/utils/schema/setVideo'; -import { setInstruction } from 'src/utils/schema/setInstruction'; +import type { CourseJsonLdProps, RecipeJsonLdProps } from '../index'; +import type { Review, AggregateRating } from '../types'; +import { setReviews } from '../utils/schema/setReviews'; +import { setAuthor } from '../utils/schema/setAuthor'; +import { setNutrition } from '../utils/schema/setNutrition'; +import { setAggregateRating } from '../utils/schema/setAggregateRating'; +import { setVideo } from '../utils/schema/setVideo'; +import { setInstruction } from '../utils/schema/setInstruction'; type Director = { name: string; diff --git a/src/jsonld/collectionPage.tsx b/src/jsonld/collectionPage.tsx index 3e0e04d7..75361e1a 100644 --- a/src/jsonld/collectionPage.tsx +++ b/src/jsonld/collectionPage.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { JsonLd, JsonLdProps } from './jsonld'; -import type { CreativeWork } from 'src/types'; -import { setCreativeWork } from 'src/utils/schema/setCreativeWork'; +import type { CreativeWork } from '../types'; +import { setCreativeWork } from '../utils/schema/setCreativeWork'; export interface CollectionPageJsonLdProps extends JsonLdProps { name: string; diff --git a/src/jsonld/corporateContact.tsx b/src/jsonld/corporateContact.tsx index c17f84df..f9ecb114 100644 --- a/src/jsonld/corporateContact.tsx +++ b/src/jsonld/corporateContact.tsx @@ -1,9 +1,9 @@ import React from 'react'; import { JsonLd, JsonLdProps } from './jsonld'; -import type { ContactPoint } from 'src/types'; +import type { ContactPoint } from '../types'; -import { setContactPoint } from 'src/utils/schema/setContactPoint'; +import { setContactPoint } from '../utils/schema/setContactPoint'; export interface CorporateContactJsonLdProps extends JsonLdProps { url: string; diff --git a/src/jsonld/course.tsx b/src/jsonld/course.tsx index cee5795b..f9bcee89 100644 --- a/src/jsonld/course.tsx +++ b/src/jsonld/course.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import type { Provider } from 'src/types'; -import { setProvider } from 'src/utils/schema/setProvider'; +import type { Provider } from '../types'; +import { setProvider } from '../utils/schema/setProvider'; import { JsonLd, JsonLdProps } from './jsonld'; diff --git a/src/jsonld/event.tsx b/src/jsonld/event.tsx index b36eebc4..c2a25aaa 100644 --- a/src/jsonld/event.tsx +++ b/src/jsonld/event.tsx @@ -9,12 +9,12 @@ import type { Organizer, EventStatus, EventAttendanceMode, -} from 'src/types'; -import { setLocation } from 'src/utils/schema/setLocation'; -import { setPerformer } from 'src/utils/schema/setPerformer'; -import { setOffers } from 'src/utils/schema/setOffers'; -import { setAggregateOffer } from 'src/utils/schema/setAggregateOffer'; -import { setOrganizer } from 'src/utils/schema/setOrganizer'; +} from '../types'; +import { setLocation } from '../utils/schema/setLocation'; +import { setPerformer } from '../utils/schema/setPerformer'; +import { setOffers } from '../utils/schema/setOffers'; +import { setAggregateOffer } from '../utils/schema/setAggregateOffer'; +import { setOrganizer } from '../utils/schema/setOrganizer'; export interface EventJsonLdProps extends JsonLdProps { name: string; diff --git a/src/jsonld/faqPage.tsx b/src/jsonld/faqPage.tsx index 7379e9f0..f72893a3 100644 --- a/src/jsonld/faqPage.tsx +++ b/src/jsonld/faqPage.tsx @@ -1,8 +1,8 @@ import React from 'react'; -import type { Question } from 'src/types'; +import type { Question } from '../types'; import { JsonLd, JsonLdProps } from './jsonld'; -import { setQuestions } from 'src/utils/schema/setQuestions'; +import { setQuestions } from '../utils/schema/setQuestions'; export interface FAQPageJsonLdProps extends JsonLdProps { mainEntity: Question[]; diff --git a/src/jsonld/howTo.tsx b/src/jsonld/howTo.tsx index ed439f59..8105277d 100644 --- a/src/jsonld/howTo.tsx +++ b/src/jsonld/howTo.tsx @@ -1,13 +1,13 @@ import React from 'react'; import { JsonLd, JsonLdProps } from './jsonld'; -import { setImage } from 'src/utils/schema/setImage'; -import { setCost } from 'src/utils/schema/setCost'; -import { setSupply } from 'src/utils/schema/setSupply'; -import { setTool } from 'src/utils/schema/setTool'; -import { setStep } from 'src/utils/schema/setStep'; +import { setImage } from '../utils/schema/setImage'; +import { setCost } from '../utils/schema/setCost'; +import { setSupply } from '../utils/schema/setSupply'; +import { setTool } from '../utils/schema/setTool'; +import { setStep } from '../utils/schema/setStep'; -import { PriceSpecification, Step } from 'src/types'; +import { PriceSpecification, Step } from '../types'; export interface HowToJsonLdProps extends JsonLdProps { name: string; diff --git a/src/jsonld/jsonld.tsx b/src/jsonld/jsonld.tsx index 1166f08a..9e98711f 100644 --- a/src/jsonld/jsonld.tsx +++ b/src/jsonld/jsonld.tsx @@ -1,7 +1,7 @@ import React from 'react'; import Head from 'next/head'; -import toJson from 'src/utils/toJson'; +import toJson from '../utils/toJson'; export interface JsonLdProps { type?: string; diff --git a/src/jsonld/localBusiness.tsx b/src/jsonld/localBusiness.tsx index 9743e05a..6006db40 100644 --- a/src/jsonld/localBusiness.tsx +++ b/src/jsonld/localBusiness.tsx @@ -10,15 +10,15 @@ import type { GeoCircle, OpeningHoursSpecification, Offer, -} from 'src/types'; -import { setAddress } from 'src/utils/schema/setAddress'; -import { setReviews } from 'src/utils/schema/setReviews'; -import { setGeo } from 'src/utils/schema/setGeo'; -import { setAggregateRating } from 'src/utils/schema/setAggregateRating'; -import { setAction } from 'src/utils/schema/setAction'; -import { setGeoCircle } from 'src/utils/schema/setGeoCircle'; -import { setOffer } from 'src/utils/schema/setOffer'; -import { setOpeningHours } from 'src/utils/schema/setOpeningHours'; +} from '../types'; +import { setAddress } from '../utils/schema/setAddress'; +import { setReviews } from '../utils/schema/setReviews'; +import { setGeo } from '../utils/schema/setGeo'; +import { setAggregateRating } from '../utils/schema/setAggregateRating'; +import { setAction } from '../utils/schema/setAction'; +import { setGeoCircle } from '../utils/schema/setGeoCircle'; +import { setOffer } from '../utils/schema/setOffer'; +import { setOpeningHours } from '../utils/schema/setOpeningHours'; export interface LocalBusinessJsonLdProps extends JsonLdProps { type: string; diff --git a/src/jsonld/newsarticle.tsx b/src/jsonld/newsarticle.tsx index 366fa8b4..be61c9a6 100644 --- a/src/jsonld/newsarticle.tsx +++ b/src/jsonld/newsarticle.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { setAuthor } from 'src/utils/schema/setAuthor'; -import { setPublisher } from 'src/utils/schema/setPublisher'; +import { setAuthor } from '../utils/schema/setAuthor'; +import { setPublisher } from '../utils/schema/setPublisher'; import { JsonLd, JsonLdProps } from './jsonld'; import { ArticleAuthor } from '../types'; diff --git a/src/jsonld/organization.tsx b/src/jsonld/organization.tsx index 44d01c05..02b87300 100644 --- a/src/jsonld/organization.tsx +++ b/src/jsonld/organization.tsx @@ -1,9 +1,9 @@ import React from 'react'; -import type { Address, OrganizationCategory, ContactPoint } from 'src/types'; +import type { Address, OrganizationCategory, ContactPoint } from '../types'; import { JsonLd, JsonLdProps } from './jsonld'; -import { setAddress } from 'src/utils/schema/setAddress'; -import { setContactPoints } from 'src/utils/schema/setContactPoints'; +import { setAddress } from '../utils/schema/setAddress'; +import { setContactPoints } from '../utils/schema/setContactPoints'; export interface OrganizationJsonLdProps extends JsonLdProps { type?: OrganizationCategory; diff --git a/src/jsonld/product.tsx b/src/jsonld/product.tsx index 6d7e950d..0da7c014 100644 --- a/src/jsonld/product.tsx +++ b/src/jsonld/product.tsx @@ -1,19 +1,14 @@ import React from 'react'; import { JsonLd, JsonLdProps } from './jsonld'; -import type { - Review, - AggregateRating, - AggregateOffer, - Offers, -} from 'src/types'; +import type { Review, AggregateRating, AggregateOffer, Offers } from '../types'; -import { setOffers } from 'src/utils/schema/setOffers'; -import { setReviews } from 'src/utils/schema/setReviews'; -import { setAggregateRating } from 'src/utils/schema/setAggregateRating'; -import { setAggregateOffer } from 'src/utils/schema/setAggregateOffer'; -import { setManufacturer } from 'src/utils/schema/setManufacturer'; -import { setBrand } from 'src/utils/schema/setBrand'; +import { setOffers } from '../utils/schema/setOffers'; +import { setReviews } from '../utils/schema/setReviews'; +import { setAggregateRating } from '../utils/schema/setAggregateRating'; +import { setAggregateOffer } from '../utils/schema/setAggregateOffer'; +import { setManufacturer } from '../utils/schema/setManufacturer'; +import { setBrand } from '../utils/schema/setBrand'; export interface ProductJsonLdProps extends JsonLdProps { productName: string; diff --git a/src/jsonld/profilePage.tsx b/src/jsonld/profilePage.tsx index 67e3d198..7220ab6f 100644 --- a/src/jsonld/profilePage.tsx +++ b/src/jsonld/profilePage.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { JsonLd, JsonLdProps } from './jsonld'; -import type { ItemListElements } from 'src/types'; -import { setItemListElements } from 'src/utils/schema/setItemListElements'; +import type { ItemListElements } from '../types'; +import { setItemListElements } from '../utils/schema/setItemListElements'; export interface ProfilePageJsonLdProps extends JsonLdProps { breadcrumb: string | ItemListElements[]; diff --git a/src/jsonld/qaPage.tsx b/src/jsonld/qaPage.tsx index 5d335e75..502d86c4 100644 --- a/src/jsonld/qaPage.tsx +++ b/src/jsonld/qaPage.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import type { Question } from 'src/types'; -import { setAuthor } from 'src/utils/schema/setAuthor'; +import type { Question } from '../types'; +import { setAuthor } from '../utils/schema/setAuthor'; import { JsonLd, JsonLdProps } from './jsonld'; diff --git a/src/jsonld/recipe.tsx b/src/jsonld/recipe.tsx index 8e93f752..8b86eb5a 100644 --- a/src/jsonld/recipe.tsx +++ b/src/jsonld/recipe.tsx @@ -1,13 +1,13 @@ import React from 'react'; import { JsonLd, JsonLdProps } from './jsonld'; -import type { Instruction, AggregateRating, Video } from 'src/types'; +import type { Instruction, AggregateRating, Video } from '../types'; -import { setAggregateRating } from 'src/utils/schema/setAggregateRating'; -import { setAuthor } from 'src/utils/schema/setAuthor'; -import { setVideo } from 'src/utils/schema/setVideo'; -import { setInstruction } from 'src/utils/schema/setInstruction'; -import { setNutrition } from 'src/utils/schema/setNutrition'; +import { setAggregateRating } from '../utils/schema/setAggregateRating'; +import { setAuthor } from '../utils/schema/setAuthor'; +import { setVideo } from '../utils/schema/setVideo'; +import { setInstruction } from '../utils/schema/setInstruction'; +import { setNutrition } from '../utils/schema/setNutrition'; export interface RecipeJsonLdProps extends JsonLdProps { name: string; diff --git a/src/jsonld/softwareApp.tsx b/src/jsonld/softwareApp.tsx index e0bfddca..4e564b89 100644 --- a/src/jsonld/softwareApp.tsx +++ b/src/jsonld/softwareApp.tsx @@ -1,9 +1,9 @@ import React from 'react'; import { JsonLd, JsonLdProps } from './jsonld'; -import type { Review, AggregateRating } from 'src/types'; -import { setAggregateRating } from 'src/utils/schema/setAggregateRating'; -import { setReviews } from 'src/utils/schema/setReviews'; +import type { Review, AggregateRating } from '../types'; +import { setAggregateRating } from '../utils/schema/setAggregateRating'; +import { setReviews } from '../utils/schema/setReviews'; export interface SoftwareAppJsonLdProps extends JsonLdProps { name: string; diff --git a/src/jsonld/video.tsx b/src/jsonld/video.tsx index b86a2810..390fec2d 100644 --- a/src/jsonld/video.tsx +++ b/src/jsonld/video.tsx @@ -1,8 +1,8 @@ import React from 'react'; -import { Video } from 'src/types'; +import { Video } from '../types'; import { JsonLd, JsonLdProps } from './jsonld'; -import { setVideo } from 'src/utils/schema/setVideo'; +import { setVideo } from '../utils/schema/setVideo'; export interface VideoJsonLdProps extends JsonLdProps, Video {} diff --git a/src/jsonld/videoGame.tsx b/src/jsonld/videoGame.tsx index 98e8113b..383a4c22 100644 --- a/src/jsonld/videoGame.tsx +++ b/src/jsonld/videoGame.tsx @@ -7,15 +7,15 @@ import type { Video, Review, ApplicationCategory, -} from 'src/types'; -import { setAggregateRating } from 'src/utils/schema/setAggregateRating'; -import { setAuthor } from 'src/utils/schema/setAuthor'; -import { setImage } from 'src/utils/schema/setImage'; -import { setOffers } from 'src/utils/schema/setOffers'; -import { setProducer } from 'src/utils/schema/setProducer'; -import { setProvider } from 'src/utils/schema/setProvider'; -import { setReviews } from 'src/utils/schema/setReviews'; -import { setVideo } from 'src/utils/schema/setVideo'; +} from '../types'; +import { setAggregateRating } from '../utils/schema/setAggregateRating'; +import { setAuthor } from '../utils/schema/setAuthor'; +import { setImage } from '../utils/schema/setImage'; +import { setOffers } from '../utils/schema/setOffers'; +import { setProducer } from '../utils/schema/setProducer'; +import { setProvider } from '../utils/schema/setProvider'; +import { setReviews } from '../utils/schema/setReviews'; +import { setVideo } from '../utils/schema/setVideo'; import { JsonLd, JsonLdProps } from './jsonld'; diff --git a/src/jsonld/webPage.tsx b/src/jsonld/webPage.tsx index bf77658e..011cb566 100644 --- a/src/jsonld/webPage.tsx +++ b/src/jsonld/webPage.tsx @@ -1,8 +1,8 @@ import React from 'react'; -import type { ReviewedBy } from 'src/types'; +import type { ReviewedBy } from '../types'; import { JsonLd, JsonLdProps } from './jsonld'; -import { setReviewedBy } from 'src/utils/schema/setReviewedBy'; +import { setReviewedBy } from '../utils/schema/setReviewedBy'; export interface WebPageJsonLdProps extends JsonLdProps { keyOverride?: string; diff --git a/src/meta/nextSEO.tsx b/src/meta/nextSEO.tsx index 006c403c..bd6b78c3 100644 --- a/src/meta/nextSEO.tsx +++ b/src/meta/nextSEO.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { Fragment } from 'react'; import { NextSeoProps } from '../types'; import { WithHead } from './withHead'; @@ -22,7 +22,7 @@ export const NextSeo = ({ additionalLinkTags, }: NextSeoProps) => { return ( - <> + - + ); }; diff --git a/src/utils/schema/__tests__/setAction.test.ts b/src/utils/schema/__tests__/setAction.test.ts index 0c064012..3fa37da9 100644 --- a/src/utils/schema/__tests__/setAction.test.ts +++ b/src/utils/schema/__tests__/setAction.test.ts @@ -1,4 +1,4 @@ -import { Action } from 'src/types'; +import { Action } from '../../../types'; import { setAction } from '../setAction'; describe('setAction', () => { diff --git a/src/utils/schema/__tests__/setAddress.test.ts b/src/utils/schema/__tests__/setAddress.test.ts index a38bff09..67e515a8 100644 --- a/src/utils/schema/__tests__/setAddress.test.ts +++ b/src/utils/schema/__tests__/setAddress.test.ts @@ -1,4 +1,4 @@ -import { Address } from 'src/types'; +import { Address } from '../../../types'; import { setAddress } from '../setAddress'; const addressOne: Address = { diff --git a/src/utils/schema/__tests__/setAggregateOffer.test.ts b/src/utils/schema/__tests__/setAggregateOffer.test.ts index 48b45271..76fb2899 100644 --- a/src/utils/schema/__tests__/setAggregateOffer.test.ts +++ b/src/utils/schema/__tests__/setAggregateOffer.test.ts @@ -1,4 +1,4 @@ -import { AggregateOffer, Offers } from 'src/types'; +import { AggregateOffer, Offers } from '../../../types'; import { setAggregateOffer } from '../setAggregateOffer'; const offerOne: Offers = { diff --git a/src/utils/schema/__tests__/setAggregateRating.test.ts b/src/utils/schema/__tests__/setAggregateRating.test.ts index bc620f00..dd6d2b86 100644 --- a/src/utils/schema/__tests__/setAggregateRating.test.ts +++ b/src/utils/schema/__tests__/setAggregateRating.test.ts @@ -1,4 +1,4 @@ -import { AggregateRating } from 'src/types'; +import { AggregateRating } from '../../../types'; import { setAggregateRating } from '../setAggregateRating'; const aggregateRating: AggregateRating = { diff --git a/src/utils/schema/__tests__/setAuthor.test.ts b/src/utils/schema/__tests__/setAuthor.test.ts index 16684edd..20c9e6a6 100644 --- a/src/utils/schema/__tests__/setAuthor.test.ts +++ b/src/utils/schema/__tests__/setAuthor.test.ts @@ -1,4 +1,4 @@ -import { ArticleAuthor } from 'src/types'; +import { ArticleAuthor } from '../../../types'; import { setAuthor } from '../setAuthor'; describe('setAuthor', () => { diff --git a/src/utils/schema/__tests__/setLocation.test.ts b/src/utils/schema/__tests__/setLocation.test.ts index af114bc4..95bafc5c 100644 --- a/src/utils/schema/__tests__/setLocation.test.ts +++ b/src/utils/schema/__tests__/setLocation.test.ts @@ -1,4 +1,4 @@ -import { Place, VirtualLocation } from 'src/types'; +import { Place, VirtualLocation } from '../../../types'; import { setLocation } from '../setLocation'; const virtualLocation: VirtualLocation = { diff --git a/src/utils/schema/__tests__/setOffers.test.ts b/src/utils/schema/__tests__/setOffers.test.ts index ea738edf..d479d15e 100644 --- a/src/utils/schema/__tests__/setOffers.test.ts +++ b/src/utils/schema/__tests__/setOffers.test.ts @@ -1,4 +1,4 @@ -import { Offers } from 'src/types'; +import { Offers } from '../../../types'; import { setOffers } from '../setOffers'; const offerOne: Offers = { diff --git a/src/utils/schema/setAction.ts b/src/utils/schema/setAction.ts index 7413d047..ba37df6d 100644 --- a/src/utils/schema/setAction.ts +++ b/src/utils/schema/setAction.ts @@ -1,4 +1,4 @@ -import { Action } from 'src/types'; +import { Action } from '../../types'; export function setAction(action?: Action) { if (action) { diff --git a/src/utils/schema/setAddress.ts b/src/utils/schema/setAddress.ts index 16a9c756..1023c197 100644 --- a/src/utils/schema/setAddress.ts +++ b/src/utils/schema/setAddress.ts @@ -1,4 +1,4 @@ -import { Address } from 'src/types'; +import { Address } from '../../types'; export function setAddress(address?: Address | Address[]) { if (!address) return undefined; diff --git a/src/utils/schema/setAggregateOffer.ts b/src/utils/schema/setAggregateOffer.ts index 5560e2d8..95d7403a 100644 --- a/src/utils/schema/setAggregateOffer.ts +++ b/src/utils/schema/setAggregateOffer.ts @@ -1,4 +1,4 @@ -import type { AggregateOffer } from 'src/types'; +import type { AggregateOffer } from '../../types'; import { setOffers } from './setOffers'; export function setAggregateOffer(aggregateOffer?: AggregateOffer) { diff --git a/src/utils/schema/setAggregateRating.ts b/src/utils/schema/setAggregateRating.ts index 72553c14..a24fc727 100644 --- a/src/utils/schema/setAggregateRating.ts +++ b/src/utils/schema/setAggregateRating.ts @@ -1,4 +1,4 @@ -import type { AggregateRating } from 'src/types'; +import type { AggregateRating } from '../../types'; export function setAggregateRating(aggregateRating?: AggregateRating) { if (aggregateRating) { diff --git a/src/utils/schema/setBroadcastEvent.ts b/src/utils/schema/setBroadcastEvent.ts index e5cb16bb..f7926558 100644 --- a/src/utils/schema/setBroadcastEvent.ts +++ b/src/utils/schema/setBroadcastEvent.ts @@ -1,4 +1,4 @@ -import type { BroadcastEvent } from 'src/types'; +import type { BroadcastEvent } from '../../types'; export function setBroadcastEvent( publication?: BroadcastEvent | BroadcastEvent[], diff --git a/src/utils/schema/setClip.ts b/src/utils/schema/setClip.ts index f0f2f391..c9f7718c 100644 --- a/src/utils/schema/setClip.ts +++ b/src/utils/schema/setClip.ts @@ -1,4 +1,4 @@ -import { Clip } from 'src/types'; +import { Clip } from '../../types'; export function setClip(clips?: Clip | Clip[]) { function mapClip(clip: Clip) { diff --git a/src/utils/schema/setContactPoint.ts b/src/utils/schema/setContactPoint.ts index 3c2ebf96..3bb308ec 100644 --- a/src/utils/schema/setContactPoint.ts +++ b/src/utils/schema/setContactPoint.ts @@ -1,4 +1,4 @@ -import { ContactPoint } from 'src/types'; +import { ContactPoint } from '../../types'; export function setContactPoint(contactPoint: ContactPoint) { if (contactPoint) { diff --git a/src/utils/schema/setContactPoints.ts b/src/utils/schema/setContactPoints.ts index 2b46dbb5..995932f7 100644 --- a/src/utils/schema/setContactPoints.ts +++ b/src/utils/schema/setContactPoints.ts @@ -1,4 +1,4 @@ -import type { ContactPoint } from 'src/types'; +import type { ContactPoint } from '../../types'; export function setContactPoints(contactPoint?: ContactPoint[]) { if (contactPoint && contactPoint.length) { diff --git a/src/utils/schema/setCost.ts b/src/utils/schema/setCost.ts index 29cda44f..3ff13568 100644 --- a/src/utils/schema/setCost.ts +++ b/src/utils/schema/setCost.ts @@ -1,4 +1,4 @@ -import { PriceSpecification } from 'src/types'; +import { PriceSpecification } from '../../types'; export function setCost(cost?: PriceSpecification) { if (cost) { diff --git a/src/utils/schema/setCreativeWork.ts b/src/utils/schema/setCreativeWork.ts index 32975595..a21318d8 100644 --- a/src/utils/schema/setCreativeWork.ts +++ b/src/utils/schema/setCreativeWork.ts @@ -1,4 +1,4 @@ -import { CreativeWork } from 'src/types'; +import { CreativeWork } from '../../types'; export function setCreativeWork(creativeWork: CreativeWork) { if (creativeWork) { diff --git a/src/utils/schema/setGeo.ts b/src/utils/schema/setGeo.ts index c44412d9..19e2473d 100644 --- a/src/utils/schema/setGeo.ts +++ b/src/utils/schema/setGeo.ts @@ -1,4 +1,4 @@ -import { Geo } from 'src/types'; +import { Geo } from '../../types'; export function setGeo(geo?: Geo) { if (geo) { diff --git a/src/utils/schema/setGeoCircle.ts b/src/utils/schema/setGeoCircle.ts index 61168a6d..a34d7310 100644 --- a/src/utils/schema/setGeoCircle.ts +++ b/src/utils/schema/setGeoCircle.ts @@ -1,4 +1,4 @@ -import { GeoCircle } from 'src/types'; +import { GeoCircle } from '../../types'; export function setGeoCircle(geoCircle?: GeoCircle) { if (geoCircle) { diff --git a/src/utils/schema/setInstruction.ts b/src/utils/schema/setInstruction.ts index a2ee3551..e3d6eb45 100644 --- a/src/utils/schema/setInstruction.ts +++ b/src/utils/schema/setInstruction.ts @@ -1,4 +1,4 @@ -import { Instruction } from 'src/types'; +import { Instruction } from '../../types'; export function setInstruction(instruction: Instruction) { if (instruction) { diff --git a/src/utils/schema/setItemListElements.ts b/src/utils/schema/setItemListElements.ts index 5f34204c..62a91920 100644 --- a/src/utils/schema/setItemListElements.ts +++ b/src/utils/schema/setItemListElements.ts @@ -1,4 +1,4 @@ -import { ItemListElements } from 'src/types'; +import { ItemListElements } from '../../types'; export function setItemListElements(items: ItemListElements[]) { if (items && items.length) { diff --git a/src/utils/schema/setLocation.ts b/src/utils/schema/setLocation.ts index 9574e542..b5f9bcbf 100644 --- a/src/utils/schema/setLocation.ts +++ b/src/utils/schema/setLocation.ts @@ -1,4 +1,4 @@ -import { Location, Place, VirtualLocation } from 'src/types'; +import { Location, Place, VirtualLocation } from '../../types'; import { setAddress } from './setAddress'; export function setLocation(location?: Location) { diff --git a/src/utils/schema/setOffer.ts b/src/utils/schema/setOffer.ts index 1ae1b160..d7089bae 100644 --- a/src/utils/schema/setOffer.ts +++ b/src/utils/schema/setOffer.ts @@ -1,4 +1,4 @@ -import type { Offer } from 'src/types'; +import type { Offer } from '../../types'; export function setOffer(offer?: Offer) { function setPriceSpecification( diff --git a/src/utils/schema/setOffers.ts b/src/utils/schema/setOffers.ts index a6de9a3a..1ae38946 100644 --- a/src/utils/schema/setOffers.ts +++ b/src/utils/schema/setOffers.ts @@ -1,4 +1,4 @@ -import { Offers } from 'src/types'; +import { Offers } from '../../types'; export function setOffers(offers?: Offers | Offers[]) { function mapOffer({ seller, ...rest }: Offers) { diff --git a/src/utils/schema/setOpeningHours.ts b/src/utils/schema/setOpeningHours.ts index 519d9f6f..a9904f6d 100644 --- a/src/utils/schema/setOpeningHours.ts +++ b/src/utils/schema/setOpeningHours.ts @@ -1,4 +1,4 @@ -import { OpeningHoursSpecification } from 'src/types'; +import { OpeningHoursSpecification } from '../../types'; export function setOpeningHours(openingHours?: OpeningHoursSpecification) { if (openingHours) { diff --git a/src/utils/schema/setOrganizer.ts b/src/utils/schema/setOrganizer.ts index e089365e..f891fa3a 100644 --- a/src/utils/schema/setOrganizer.ts +++ b/src/utils/schema/setOrganizer.ts @@ -1,4 +1,4 @@ -import { Organizer } from 'src/types'; +import { Organizer } from '../../types'; export function setOrganizer(organizer?: Organizer) { if (organizer) { diff --git a/src/utils/schema/setPerformer.ts b/src/utils/schema/setPerformer.ts index 69065f4b..9755d8ee 100644 --- a/src/utils/schema/setPerformer.ts +++ b/src/utils/schema/setPerformer.ts @@ -1,4 +1,4 @@ -import { Performer } from 'src/types'; +import { Performer } from '../../types'; export function setPerformer(performer?: Performer) { if (performer) { diff --git a/src/utils/schema/setProducer.ts b/src/utils/schema/setProducer.ts index c58937d5..93d5db38 100644 --- a/src/utils/schema/setProducer.ts +++ b/src/utils/schema/setProducer.ts @@ -1,4 +1,4 @@ -import type { Producer } from 'src/types'; +import type { Producer } from '../../types'; export function setProducer(producer?: Producer) { if (producer) { diff --git a/src/utils/schema/setProvider.ts b/src/utils/schema/setProvider.ts index 62038f52..0ab3c2b6 100644 --- a/src/utils/schema/setProvider.ts +++ b/src/utils/schema/setProvider.ts @@ -1,4 +1,4 @@ -import type { Provider } from 'src/types'; +import type { Provider } from '../../types'; export function setProvider(provider: Provider) { if (provider) { diff --git a/src/utils/schema/setQuestions.ts b/src/utils/schema/setQuestions.ts index ef1ba169..30cf6a75 100644 --- a/src/utils/schema/setQuestions.ts +++ b/src/utils/schema/setQuestions.ts @@ -1,4 +1,4 @@ -import type { Question } from 'src/types'; +import type { Question } from '../../types'; export function setQuestions(questions: Question[]) { if (questions && questions.length) { diff --git a/src/utils/schema/setReviewRating.ts b/src/utils/schema/setReviewRating.ts index c780d3b4..6e7ca99d 100644 --- a/src/utils/schema/setReviewRating.ts +++ b/src/utils/schema/setReviewRating.ts @@ -1,4 +1,4 @@ -import type { ReviewRating } from 'src/types'; +import type { ReviewRating } from '../../types'; export function setReviewRating(rating?: ReviewRating) { if (rating) { diff --git a/src/utils/schema/setReviewedBy.ts b/src/utils/schema/setReviewedBy.ts index 825d911d..982be3a5 100644 --- a/src/utils/schema/setReviewedBy.ts +++ b/src/utils/schema/setReviewedBy.ts @@ -1,4 +1,4 @@ -import type { ReviewedBy } from 'src/types'; +import type { ReviewedBy } from '../../types'; export function setReviewedBy(reviewedBy?: ReviewedBy) { if (reviewedBy) { diff --git a/src/utils/schema/setReviews.ts b/src/utils/schema/setReviews.ts index a3274e94..85abdf73 100644 --- a/src/utils/schema/setReviews.ts +++ b/src/utils/schema/setReviews.ts @@ -1,4 +1,4 @@ -import type { Review } from 'src/types'; +import type { Review } from '../../types'; import { setAuthor } from './setAuthor'; import { setPublisher } from './setPublisher'; import { setReviewRating } from './setReviewRating'; diff --git a/src/utils/schema/setStep.ts b/src/utils/schema/setStep.ts index 88235e77..8304754e 100644 --- a/src/utils/schema/setStep.ts +++ b/src/utils/schema/setStep.ts @@ -1,5 +1,5 @@ -import { Step } from 'src/types'; -import { setImage } from 'src/utils/schema/setImage'; +import { Step } from '../../types'; +import { setImage } from '../../utils/schema/setImage'; export function setStep(step?: Step[]) { if (step) { diff --git a/src/utils/schema/setVideo.ts b/src/utils/schema/setVideo.ts index 4e13e566..faef6faf 100644 --- a/src/utils/schema/setVideo.ts +++ b/src/utils/schema/setVideo.ts @@ -1,4 +1,4 @@ -import type { Video } from 'src/types'; +import type { Video } from '../../types'; import { setClip } from './setClip'; import { setInteractionStatistic } from './setInteractionStatistic'; diff --git a/tsconfig.json b/tsconfig.json index 89314e54..a877af2a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,6 +24,7 @@ "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, "skipLibCheck": true, "baseUrl": ".", + "rootDir": "./src", "paths": { "next/head": ["./node_modules/next/head.d.ts"], "next/script": ["./node_modules/next/script.d.ts"] diff --git a/yarn.lock b/yarn.lock index 586dfa58..165c0ceb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1589,6 +1589,14 @@ estree-walker "^1.0.1" picomatch "^2.2.2" +"@rollup/pluginutils@^4.1.2": + version "4.2.1" + resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-4.2.1.tgz#e6c6c3aba0744edce3fb2074922d3776c0af2a6d" + integrity sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ== + dependencies: + estree-walker "^2.0.1" + picomatch "^2.2.2" + "@sinclair/typebox@^0.25.16": version "0.25.24" resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.25.24.tgz#8c7688559979f7079aacaf31aa881c3aa410b718" @@ -2167,7 +2175,7 @@ babel-plugin-polyfill-regenerator@^0.4.1: dependencies: "@babel/helper-define-polyfill-provider" "^0.3.3" -babel-plugin-transform-async-to-promises@^0.8.15: +babel-plugin-transform-async-to-promises@^0.8.18: version "0.8.18" resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-promises/-/babel-plugin-transform-async-to-promises-0.8.18.tgz#f4dc5980b8afa0fc9c784b8d931afde913413e39" integrity sha512-WpOrF76nUHijnNn10eBGOHZmXQC8JYRME9rOLxStOga7Av2VO53ehVFvVNImMksVtQuL2/7ZNxEgxnx7oo/3Hw== @@ -2907,6 +2915,11 @@ deepmerge@^4.2.2: resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== +define-lazy-prop@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f" + integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og== + define-properties@^1.1.3, define-properties@^1.1.4: version "1.2.0" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.0.tgz#52988570670c9eacedd8064f4a990f2405849bd5" @@ -3379,7 +3392,7 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" -find-cache-dir@^3.3.1: +find-cache-dir@^3.3.2: version "3.3.2" resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.2.tgz#b30c5b6eff0730731aea9bbd9dbecbd80256d64b" integrity sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig== @@ -3451,14 +3464,14 @@ fraction.js@^4.2.0: resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.2.0.tgz#448e5109a313a3527f5a3ab2119ec4cf0e0e2950" integrity sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA== -fs-extra@8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" - integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== +fs-extra@^10.0.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" + integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== dependencies: graceful-fs "^4.2.0" - jsonfile "^4.0.0" - universalify "^0.1.0" + jsonfile "^6.0.1" + universalify "^2.0.0" fs-extra@^9.1.0: version "9.1.0" @@ -3973,6 +3986,11 @@ is-decimal@^1.0.0: resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-1.0.4.tgz#65a3a5958a1c5b63a706e1b333d7cd9f630d3fa5" integrity sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw== +is-docker@^2.0.0, is-docker@^2.1.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" + integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== + is-fullwidth-code-point@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" @@ -4145,6 +4163,13 @@ is-weakset@^2.0.1: call-bind "^1.0.2" get-intrinsic "^1.1.1" +is-wsl@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" + integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== + dependencies: + is-docker "^2.0.0" + isarray@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" @@ -4695,13 +4720,6 @@ json5@^2.2.0, json5@^2.2.2: resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== -jsonfile@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" - integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== - optionalDependencies: - graceful-fs "^4.1.6" - jsonfile@^6.0.1: version "6.1.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" @@ -5106,10 +5124,10 @@ merge-stream@^2.0.0: resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== -microbundle@^0.14.2: - version "0.14.2" - resolved "https://registry.yarnpkg.com/microbundle/-/microbundle-0.14.2.tgz#2db869c8145bd159aa55058ead47223f58f93bf2" - integrity sha512-jODALfU3w7jnJAqw7Tou9uU8e8zH0GRVWzOd/V7eAvD1fsfb9pyMbmzhFZqnX6SCb54eP1EF5oRyNlSxBAxoag== +microbundle@^0.15.1: + version "0.15.1" + resolved "https://registry.yarnpkg.com/microbundle/-/microbundle-0.15.1.tgz#3fa67128934b31736823b5c868dae4b92d94e766" + integrity sha512-aAF+nwFbkSIJGfrJk+HyzmJOq3KFaimH6OIFBU6J2DPjQeg1jXIYlIyEv81Gyisb9moUkudn+wj7zLNYMOv75Q== dependencies: "@babel/core" "^7.12.10" "@babel/plugin-proposal-class-properties" "7.12.1" @@ -5130,7 +5148,7 @@ microbundle@^0.14.2: asyncro "^3.0.0" autoprefixer "^10.1.0" babel-plugin-macros "^3.0.1" - babel-plugin-transform-async-to-promises "^0.8.15" + babel-plugin-transform-async-to-promises "^0.8.18" babel-plugin-transform-replace-expressions "^0.2.0" brotli-size "^4.0.0" builtin-modules "^3.1.0" @@ -5146,7 +5164,8 @@ microbundle@^0.14.2: rollup-plugin-bundle-size "^1.0.3" rollup-plugin-postcss "^4.0.0" rollup-plugin-terser "^7.0.2" - rollup-plugin-typescript2 "^0.29.0" + rollup-plugin-typescript2 "^0.32.0" + rollup-plugin-visualizer "^5.6.0" sade "^1.7.4" terser "^5.7.0" tiny-glob "^0.2.8" @@ -5469,6 +5488,15 @@ onetime@^5.1.0, onetime@^5.1.2: dependencies: mimic-fn "^2.1.0" +open@^8.4.0: + version "8.4.2" + resolved "https://registry.yarnpkg.com/open/-/open-8.4.2.tgz#5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9" + integrity sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ== + dependencies: + define-lazy-prop "^2.0.0" + is-docker "^2.1.1" + is-wsl "^2.2.0" + onetime@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/onetime/-/onetime-6.0.0.tgz#7c24c18ed1fd2e9bca4bd26806a33613c77d34b4" @@ -5627,7 +5655,7 @@ path-key@^4.0.0: resolved "https://registry.yarnpkg.com/path-key/-/path-key-4.0.0.tgz#295588dc3aee64154f877adb9d780b81c554bf18" integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ== -path-parse@^1.0.6, path-parse@^1.0.7: +path-parse@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== @@ -6280,13 +6308,6 @@ resolve.exports@^2.0.0: resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== -resolve@1.17.0: - version "1.17.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444" - integrity sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w== - dependencies: - path-parse "^1.0.6" - resolve@^1.10.0, resolve@^1.14.2, resolve@^1.17.0, resolve@^1.19.0, resolve@^1.20.0: version "1.22.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" @@ -6360,16 +6381,26 @@ rollup-plugin-terser@^7.0.2: serialize-javascript "^4.0.0" terser "^5.0.0" -rollup-plugin-typescript2@^0.29.0: - version "0.29.0" - resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.29.0.tgz#b7ad83f5241dbc5bdf1e98d9c3fca005ffe39e1a" - integrity sha512-YytahBSZCIjn/elFugEGQR5qTsVhxhUwGZIsA9TmrSsC88qroGo65O5HZP/TTArH2dm0vUmYWhKchhwi2wL9bw== +rollup-plugin-typescript2@^0.32.0: + version "0.32.1" + resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.32.1.tgz#470ded8e1965efac02043cc0ef4a7fa36bed83b9" + integrity sha512-RanO8bp1WbeMv0bVlgcbsFNCn+Y3rX7wF97SQLDxf0fMLsg0B/QFF005t4AsGUcDgF3aKJHoqt4JF2xVaABeKw== dependencies: - "@rollup/pluginutils" "^3.1.0" - find-cache-dir "^3.3.1" - fs-extra "8.1.0" - resolve "1.17.0" - tslib "2.0.1" + "@rollup/pluginutils" "^4.1.2" + find-cache-dir "^3.3.2" + fs-extra "^10.0.0" + resolve "^1.20.0" + tslib "^2.4.0" + +rollup-plugin-visualizer@^5.6.0: + version "5.9.2" + resolved "https://registry.yarnpkg.com/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.9.2.tgz#f1aa2d9b1be8ebd6869223c742324897464d8891" + integrity sha512-waHktD5mlWrYFrhOLbti4YgQCn1uR24nYsNuXxg7LkPH8KdTXVWR9DNY1WU0QqokyMixVXJS4J04HNrVTMP01A== + dependencies: + open "^8.4.0" + picomatch "^2.3.1" + source-map "^0.7.4" + yargs "^17.5.1" rollup-pluginutils@^2.8.2: version "2.8.2" @@ -6583,6 +6614,11 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== +source-map@^0.7.4: + version "0.7.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" + integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== + sourcemap-codec@^1.4.8: version "1.4.8" resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4" @@ -6957,11 +6993,6 @@ trough@^1.0.0: resolved "https://registry.yarnpkg.com/trough/-/trough-1.0.5.tgz#b8b639cefad7d0bb2abd37d433ff8293efa5f406" integrity sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA== -tslib@2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.0.1.tgz#410eb0d113e5b6356490eec749603725b021b43e" - integrity sha512-SgIkNheinmEBgx1IUNirK0TUD4X9yjjBRTqqjggWCU3pUEqIk3/Uwl3yRixYKT6WjQuGiwDv4NomL3wqRCj+CQ== - tslib@^2.0.3, tslib@^2.1.0, tslib@^2.4.0: version "2.5.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" @@ -7085,11 +7116,6 @@ unist-util-visit-parents@^3.0.0: "@types/unist" "^2.0.0" unist-util-is "^4.0.0" -universalify@^0.1.0: - version "0.1.2" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" - integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== - universalify@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" @@ -7370,6 +7396,19 @@ yargs@^17.3.1: y18n "^5.0.5" yargs-parser "^21.1.1" +yargs@^17.5.1: + version "17.7.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.1.1" + yauzl@^2.10.0: version "2.10.0" resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9"