From 2594620f30f8a23833e42499b9a6aa6f0646b077 Mon Sep 17 00:00:00 2001 From: Vincent <Vinnl@users.noreply.github.com> Date: Thu, 27 Feb 2020 13:14:40 +0100 Subject: [PATCH] List requirement to use `main` in package.json --- docusaurus/docs/custom-templates.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docusaurus/docs/custom-templates.md b/docusaurus/docs/custom-templates.md index 4cf863e98..7e397ab7f 100644 --- a/docusaurus/docs/custom-templates.md +++ b/docusaurus/docs/custom-templates.md @@ -88,3 +88,14 @@ Below is an example `template.json` file: Any values you add for `"dependencies"` and `"scripts"` will be merged with the Create React App defaults. Values for any other keys will be used as-is, replacing any matching Create React App defaults. For convenience, we always replace `npm run` with `yarn` in your custom `"scripts"`, as well as in your `README` when projects are initialized with yarn. + +### `package.json` + +There are not many requirements specific to custom templates for your `package.json`, other than that the `main` key refers to your `template.json` file: + +```json +{ + "name": "cra-template-[template-name]", + "main": "template.json" +} +``` -- GitLab