From 100947d05083bf2bf91baded224926a4ebf63399 Mon Sep 17 00:00:00 2001 From: Francois Daoust Date: Mon, 27 Jun 2022 22:23:18 +0200 Subject: [PATCH] [Curation] Add package.json file to curated branch 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');