diff --git a/packages/outline-react/README.md b/packages/outline-react/README.md new file mode 100644 index 000000000..a11386962 --- /dev/null +++ b/packages/outline-react/README.md @@ -0,0 +1,3 @@ +# `outline-react` + +This package provides a set of extensions and utilities for Outline that allow for rich-text editing in React applications. diff --git a/packages/outline-react/package.json b/packages/outline-react/package.json index 09d4439d9..5b2e4fb0d 100644 --- a/packages/outline-react/package.json +++ b/packages/outline-react/package.json @@ -1,5 +1,17 @@ { "name": "outline-react", + "author": { + "name": "Dominic Gannaway", + "email": "dg@domgan.com" + }, + "description": "The library provides powerful Outline extensions for React.", + "keywords": [ + "react", + "outline", + "editor", + "rich-text" + ], + "license": "MIT", "version": "0.0.4", "dependencies": { "outline": "0.0.4", @@ -8,5 +20,10 @@ "peerDependencies": { "react": ">=17.0.1", "react-dom": ">=17.0.1" + }, + "repository": { + "type": "git", + "url": "https://github.com/facebookexternal/Outline", + "directory": "packages/outline-react" } } diff --git a/packages/outline/README.md b/packages/outline/README.md new file mode 100644 index 000000000..b6443c16d --- /dev/null +++ b/packages/outline/README.md @@ -0,0 +1,5 @@ +# `outline` + +Outline is a fast, light-weight, extensible library for building rich text editors on the web. + +The `outline` package contains only the core functionality that powers Outline. \ No newline at end of file diff --git a/scripts/prepare-release.js b/scripts/prepare-release.js index 57eec06db..c60c2343a 100644 --- a/scripts/prepare-release.js +++ b/scripts/prepare-release.js @@ -10,7 +10,21 @@ async function prepareOutlinePackage() { await exec(`cp -R ./packages/outline/dist ./packages/outline/npm`); await exec(`cp -R ./packages/outline/package.json ./packages/outline/npm`); await exec(`cp -R LICENSE ./packages/outline/npm`); - await exec(`cp -R README.md ./packages/outline/npm`); + await exec(`cp -R ./packages/outline/README.md ./packages/outline/npm`); +} + +async function prepareOutlineReactPackage() { + await exec(`rm -rf ./packages/outline-react/npm`); + await exec(`mkdir ./packages/outline-react/npm`); + await exec(`cp -R ./packages/outline-react/dist ./packages/outline-react/npm`); + await exec(`cp -R ./packages/outline-react/*.js ./packages/outline-react/npm`); + // await exec(`cp -R ./packages/outline-react/OutlineEnv.js ./packages/outline-react/npm`); + // await exec(`cp -R ./packages/outline-react/OutlineHotKeys.js ./packages/outline-react/npm`); + // await exec(`cp -R ./packages/outline-react/use* ./packages/outline-react/npm`); + // await exec(`cp -R ./packages/outline-react/package.json ./packages/outline-react/npm`); + await exec(`cp -R LICENSE ./packages/outline-react/npm`); + await exec(`cp -R ./packages/outline-react/README.md ./packages/outline-react/npm`); } prepareOutlinePackage(); +prepareOutlineReactPackage();