Skip to content

Commit

Permalink
build: do not use rdf-js
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Feb 29, 2024
1 parent a4a98d2 commit e365e06
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 1 deletion.
109 changes: 109 additions & 0 deletions .changeset/khaki-boxes-flow.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion packages/builder/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit e365e06

Please sign in to comment.