Skip to content

Commit d501906

Browse files
authored
[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).
1 parent 991f947 commit d501906

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/commit-curated.js

+5
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ async function commitCurated(curatedFolder, stayOnCurated) {
5959
execSync('git checkout main -- packages');
6060
console.log('- done');
6161

62+
console.log();
63+
console.log('Add package.json file to the "curated" branch');
64+
execSync('git checkout main -- package.json');
65+
console.log('- done');
66+
6267
console.log();
6368
console.log('Commit changes to the "curated" branch');
6469
execSync('git add ed --all');

0 commit comments

Comments
 (0)