From 0318fc598cd97593e28e6f6e1aad27596e0d954d Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Sat, 8 Jun 2024 14:29:33 +0300 Subject: [PATCH] chore: Enable source maps for `npm start` stack traces --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a1103f94..60821b05 100644 --- a/package.json +++ b/package.json @@ -44,8 +44,8 @@ "clean": "git clean -fdxe node_modules", "lint": "eslint src/", "prettier": "prettier --write .", - "prestart": "npm run build:node", - "start": "node -i -e 'YAML=require(\"./dist/index.js\")'", + "prestart": "rollup --sourcemap -c config/rollup.node-config.mjs", + "start": "node --enable-source-maps -i -e 'YAML=require(\"./dist/index.js\");const{parse,parseDocument,parseAllDocuments}=YAML'", "test": "jest --config config/jest.config.js", "test:all": "npm test && npm run test:types && npm run test:dist && npm run test:dist:types", "test:browsers": "cd playground && npm test",