Skip to content

Commit

Permalink
Use npm workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 3, 2021
1 parent 1051ab6 commit 1f12666
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
- uses: dcodeIO/setup-node-nvm@master
with:
node-version: ${{matrix.node}}
- run: npm install -g npm
- run: npm install
- run: npm test
- uses: codecov/codecov-action@v1
Expand Down
3 changes: 0 additions & 3 deletions lerna.json

This file was deleted.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
],
"type": "module",
"workspaces": [
"packages/rehype-dom-parse",
"packages/rehype-dom-stringify",
"packages/rehype-dom"
],
"devDependencies": {
"@types/jsdom": "^16.0.0",
"@types/tape": "^4.0.0",
"c8": "^7.0.0",
"hastscript": "^7.0.0",
"jsdom": "^17.0.0",
"lerna": "^4.0.0",
"prettier": "^2.0.0",
"rehype-highlight": "^5.0.0",
"rehype-parse": "^8.0.0",
Expand All @@ -34,8 +38,7 @@
"xo": "^0.44.0"
},
"scripts": {
"postinstall": "lerna bootstrap --no-ci",
"build-workspace": "lerna run build",
"build-workspace": "npm run build --workspaces",
"build-monorepo": "rimraf \"*.d.ts\" \"test/*.d.ts\" && tsc && type-coverage",
"build": "npm run build-workspace && npm run build-monorepo",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
Expand Down
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import rehypeSlug from 'rehype-slug'
import {visit} from 'unist-util-visit'
import {u} from 'unist-builder'
import {h, s} from 'hastscript'
import rehypeDomParse from './packages/rehype-dom-parse/index.js'
import rehypeDomStringify from './packages/rehype-dom-stringify/index.js'
import {rehypeDom} from './packages/rehype-dom/index.js'
import rehypeDomParse from 'rehype-dom-parse'
import rehypeDomStringify from 'rehype-dom-stringify'
import {rehypeDom} from 'rehype-dom'

const {window} = new JSDOM('')

Expand Down

0 comments on commit 1f12666

Please sign in to comment.