From d5019063db117a7bd6ebdc2903339ed79abe2056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Daoust?= Date: Tue, 28 Jun 2022 09:28:57 +0200 Subject: [PATCH] [Curation] Add package.json file to curated branch (#647) This should allow users to install the curated branch of Webref directly from npm and then import it from code (see #641): ``` npm install "https://github.com/w3c/webref.git#curated" ``` ```js import webref from 'webref/ed' assert { type: 'json' }; ``` Note that we don't currently update the overall version of the Webref package (it stays at `0.0.1`) and don't provide the JS logic (`listAll`) that exists in the released `@webref/xxx` packages (that logic is in the `curated` branch but not in the `ed` folder). --- tools/commit-curated.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/commit-curated.js b/tools/commit-curated.js index 0b1de006fa31..f56ff20c19df 100644 --- a/tools/commit-curated.js +++ b/tools/commit-curated.js @@ -59,6 +59,11 @@ async function commitCurated(curatedFolder, stayOnCurated) { execSync('git checkout main -- packages'); console.log('- done'); + console.log(); + console.log('Add package.json file to the "curated" branch'); + execSync('git checkout main -- package.json'); + console.log('- done'); + console.log(); console.log('Commit changes to the "curated" branch'); execSync('git add ed --all');