From 917770416bdd916e9c82f1c041cb05771dbb1be9 Mon Sep 17 00:00:00 2001 From: Sam Vervaeck Date: Mon, 24 Feb 2020 18:35:28 +0100 Subject: [PATCH] Enable source-map-support --- package-lock.json | 19 +++++++++++++++++++ package.json | 1 + src/bin/bolt.ts | 2 ++ tsconfig.json | 2 +- 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 0ff8746d0..22e5edca5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -129,6 +129,11 @@ "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", "dev": true }, + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" + }, "camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", @@ -877,6 +882,20 @@ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + }, + "source-map-support": { + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.16.tgz", + "integrity": "sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ==", + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", diff --git a/package.json b/package.json index 14b527991..a398fc965 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "glob": "^7.1.6", "pegjs": "^0.11.0-master.b7b87ea", "reflect-metadata": "^0.1.13", + "source-map-support": "^0.5.16", "xregexp": "^4.3.0", "yargs": "^15.1.0" }, diff --git a/src/bin/bolt.ts b/src/bin/bolt.ts index db28ed50a..8dcb22251 100644 --- a/src/bin/bolt.ts +++ b/src/bin/bolt.ts @@ -1,5 +1,7 @@ #!/usr/bin/env node +import "source-map-support/register" + import * as fs from "fs" import yargs from "yargs" diff --git a/tsconfig.json b/tsconfig.json index a75222e25..3cc4e2184 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -52,7 +52,7 @@ /* Source Map Options */ // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ - // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ + "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ /* Experimental Options */