From e365e0602dea75de554c79d75ca89e31c5b50dd7 Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Thu, 29 Feb 2024 10:24:31 +0100 Subject: [PATCH] build: do not use `rdf-js` --- .changeset/khaki-boxes-flow.md | 109 +++++++++++++++++++++++++++++++++ packages/builder/modules.ts | 4 +- 2 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 .changeset/khaki-boxes-flow.md diff --git a/.changeset/khaki-boxes-flow.md b/.changeset/khaki-boxes-flow.md new file mode 100644 index 00000000..2b5cb30f --- /dev/null +++ b/.changeset/khaki-boxes-flow.md @@ -0,0 +1,109 @@ +--- +"@vocabulary/builder": patch +"@vocabulary/rico": patch +"@vocabulary/acl": patch +"@vocabulary/as": patch +"@vocabulary/bibo": patch +"@vocabulary/cc": patch +"@vocabulary/cert": patch +"@vocabulary/cnt": patch +"@vocabulary/constant": patch +"@vocabulary/crm": patch +"@vocabulary/csvw": patch +"@vocabulary/ctag": patch +"@vocabulary/dash": patch +"@vocabulary/dash-sparql": patch +"@vocabulary/dbo": patch +"@vocabulary/dc11": patch +"@vocabulary/dcam": patch +"@vocabulary/dcat": patch +"@vocabulary/dcmitype": patch +"@vocabulary/dcterms": patch +"@vocabulary/dig": patch +"@vocabulary/discipline": patch +"@vocabulary/doap": patch +"@vocabulary/dpv": patch +"@vocabulary/dqv": patch +"@vocabulary/dtype": patch +"@vocabulary/duv": patch +"@vocabulary/earl": patch +"@vocabulary/ebucore": patch +"@vocabulary/exif": patch +"@vocabulary/foaf": patch +"@vocabulary/frbr": patch +"@vocabulary/geo": patch +"@vocabulary/geof": patch +"@vocabulary/geor": patch +"@vocabulary/gml": patch +"@vocabulary/gn": patch +"@vocabulary/gr": patch +"@vocabulary/grddl": patch +"@vocabulary/gs1": patch +"@vocabulary/gtfs": patch +"@vocabulary/http": patch +"@vocabulary/hydra": patch +"@vocabulary/ical": patch +"@vocabulary/la": patch +"@vocabulary/ldp": patch +"@vocabulary/list": patch +"@vocabulary/locn": patch +"@vocabulary/log": patch +"@vocabulary/lvont": patch +"@vocabulary/m4i": patch +"@vocabulary/ma": patch +"@vocabulary/mads": patch +"@vocabulary/math": patch +"@vocabulary/oa": patch +"@vocabulary/og": patch +"@vocabulary/oidc": patch +"@vocabulary/org": patch +"@vocabulary/owl": patch +"@vocabulary/pim": patch +"@vocabulary/prefix": patch +"@vocabulary/prov": patch +"@vocabulary/qb": patch +"@vocabulary/qkdv": patch +"@vocabulary/quantitykind": patch +"@vocabulary/qudt": patch +"@vocabulary/rdau": patch +"@vocabulary/rdf": patch +"@vocabulary/rdfa": patch +"@vocabulary/rdfs": patch +"@vocabulary/rev": patch +"@vocabulary/rr": patch +"@vocabulary/rss": patch +"@vocabulary/schema": patch +"@vocabulary/sd": patch +"@vocabulary/sdmx": patch +"@vocabulary/sem": patch +"@vocabulary/set": patch +"@vocabulary/sf": patch +"@vocabulary/sh": patch +"@vocabulary/shex": patch +"@vocabulary/shsh": patch +"@vocabulary/sioc": patch +"@vocabulary/skos": patch +"@vocabulary/skosxl": patch +"@vocabulary/solid": patch +"@vocabulary/sosa": patch +"@vocabulary/sou": patch +"@vocabulary/ssn": patch +"@vocabulary/stat": patch +"@vocabulary/string": patch +"@vocabulary/test": patch +"@vocabulary/time": patch +"@vocabulary/unit": patch +"@vocabulary/vaem": patch +"@vocabulary/vann": patch +"@vocabulary/vcard": patch +"@vocabulary/void": patch +"@vocabulary/vs": patch +"@vocabulary/vso": patch +"@vocabulary/wdrs": patch +"@vocabulary/wgs": patch +"@vocabulary/xhv": patch +"@vocabulary/xkos": patch +"@vocabulary/xsd": patch +--- + +Replace usages of `rdf-js` with `@rdfjs/types` in type declarations diff --git a/packages/builder/modules.ts b/packages/builder/modules.ts index c6878d85..38c63f40 100644 --- a/packages/builder/modules.ts +++ b/packages/builder/modules.ts @@ -21,6 +21,8 @@ export async function buildModule(path: string, prefix: string) { } } - const code = rdfjsSerializer.transform(quadArray) + const code = rdfjsSerializer + .transform(quadArray) + .replaceAll("import('rdf-js')", "import('@rdfjs/types')") await fs.writeFile('./index.ts', code) }