diff --git a/package.json b/package.json index d41b4d9..aa87912 100644 --- a/package.json +++ b/package.json @@ -12,18 +12,18 @@ ], "type": "module", "scripts": { - "build:html-to-text": "cd ./packages/html-to-text/ && npm run build", - "build:html-to-text-cli": "cd ./packages/html-to-text-cli/ && npm run build", - "build:html-to-md": "cd ./packages/html-to-md/ && npm run build", + "build:html-to-text": "npm run build -w ./packages/html-to-text", + "build:html-to-text-cli": "npm run build -w ./packages/html-to-text-cli", + "build:html-to-md": "npm run build -w ./packages/html-to-md", "build": "npm run build:html-to-text && npm run build:html-to-text-cli && npm run build:html-to-md", - "cover:html-to-text": "cd ./packages/html-to-text/ && npm run cover", - "cover:html-to-md": "cd ./packages/html-to-md/ && npm run cover", + "cover:html-to-text": "npm run cover -w ./packages/html-to-text", + "cover:html-to-md": "npm run cover -w ./packages/html-to-md", "cover": "concurrently npm:cover:*", "example:md": "node --experimental-specifier-resolution=node ./example/html-to-md.js", "example:text": "node --experimental-specifier-resolution=node ./example/html-to-text.js", "lint": "eslint .", - "test:html-to-text": "cd ./packages/html-to-text/ && npm run test", - "test:html-to-md": "cd ./packages/html-to-md/ && npm run test", + "test:html-to-text": "npm run test -w ./packages/html-to-text", + "test:html-to-md": "npm run test -w ./packages/html-to-md", "test": "concurrently npm:test:*" }, "devDependencies": {