From d49b792e99abe8816d5753dba3c8b84c8cc81519 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Mon, 15 Aug 2016 14:44:44 -0700 Subject: [PATCH] fix release script, update code highlighting example --- examples/code-highlighting/index.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/code-highlighting/index.js b/examples/code-highlighting/index.js index fcf2a99f3..6377fb9c8 100644 --- a/examples/code-highlighting/index.js +++ b/examples/code-highlighting/index.js @@ -94,8 +94,8 @@ function codeBlockDecorator(text, block) { const schema = { nodes: { code: { - component: CodeBlock, - decorator: codeBlockDecorator, + render: CodeBlock, + decorate: codeBlockDecorator, } }, marks: { diff --git a/package.json b/package.json index 093f97ea3..3b0d83acc 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "lint": "eslint --ignore-pattern 'build.dev.js' --ignore-pattern 'build.prod.js' '{examples,lib}/**/*.js'", "open": "open http://localhost:8080/dev.html", "prepublish": "npm run dist", - "publish": "np", + "release": "np", "start": "http-server ./examples", "test": "npm-run-all lint dist:npm tests", "tests": "mocha --compilers js:babel-core/register --reporter spec ./test/server.js",