diff --git a/package.json b/package.json index 7c271b943..2fd732f06 100644 --- a/package.json +++ b/package.json @@ -95,6 +95,7 @@ "build:types": "tsc --emitDeclarationOnly -d --moduleResolution node --declarationDir lib", "build:all": "npm run build && npm run build:types && npm run build:browser && npm run build:esm", "doc": "typedoc --out ./doc ./src/index.ts --excludePrivate --excludeInternal --tsconfig ./tsconfig.json", + "prepare": "npm run build && npm run build:types && npm run build:browser && npm run build:esm", "prepublishOnly": "npm ci && npm run build:all && npm run doc && npm run test", "postversion": "git push --follow-tags", "start": "webpack serve --port 4800", diff --git a/src/jsonldparser.js b/src/jsonldparser.js index 712216fc4..79b4193b1 100644 --- a/src/jsonldparser.js +++ b/src/jsonldparser.js @@ -35,7 +35,7 @@ export function jsonldObjectToTerm (kb, obj) { return kb.rdfFactory.literal(obj['@value']) } - return kb.rdfFactory.literal(obj) + return kb.rdfFactory.literal(); } /**