Skip to content

Commit 5c7a2b2

Browse files
committed
cleanup package scripts
1 parent e5519c8 commit 5c7a2b2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
],
1313
"type": "module",
1414
"scripts": {
15-
"build:html-to-text": "cd ./packages/html-to-text/ && npm run build",
16-
"build:html-to-text-cli": "cd ./packages/html-to-text-cli/ && npm run build",
17-
"build:html-to-md": "cd ./packages/html-to-md/ && npm run build",
15+
"build:html-to-text": "npm run build -w ./packages/html-to-text",
16+
"build:html-to-text-cli": "npm run build -w ./packages/html-to-text-cli",
17+
"build:html-to-md": "npm run build -w ./packages/html-to-md",
1818
"build": "npm run build:html-to-text && npm run build:html-to-text-cli && npm run build:html-to-md",
19-
"cover:html-to-text": "cd ./packages/html-to-text/ && npm run cover",
20-
"cover:html-to-md": "cd ./packages/html-to-md/ && npm run cover",
19+
"cover:html-to-text": "npm run cover -w ./packages/html-to-text",
20+
"cover:html-to-md": "npm run cover -w ./packages/html-to-md",
2121
"cover": "concurrently npm:cover:*",
2222
"example:md": "node --experimental-specifier-resolution=node ./example/html-to-md.js",
2323
"example:text": "node --experimental-specifier-resolution=node ./example/html-to-text.js",
2424
"lint": "eslint .",
25-
"test:html-to-text": "cd ./packages/html-to-text/ && npm run test",
26-
"test:html-to-md": "cd ./packages/html-to-md/ && npm run test",
25+
"test:html-to-text": "npm run test -w ./packages/html-to-text",
26+
"test:html-to-md": "npm run test -w ./packages/html-to-md",
2727
"test": "concurrently npm:test:*"
2828
},
2929
"devDependencies": {

0 commit comments

Comments
 (0)