Skip to content

Commit

Permalink
[Curation] Add package.json file to curated branch (#647)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
tidoust authored Jun 28, 2022
1 parent 991f947 commit d501906
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/commit-curated.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit d501906

Please sign in to comment.