From d0f1e392d81e669a17636a32e8fd39692cc010b6 Mon Sep 17 00:00:00 2001 From: "Mr.Dr.Professor Patrick" Date: Thu, 14 Nov 2024 13:00:12 +0100 Subject: [PATCH] fix: fix d3 entries path resolving (#8) --- package.json | 3 ++- webpack.config.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8a631e2..fe42f03 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "repository": "https://github.com/datalens-tech/ui-sandbox-modules.git", "author": "DataLens Team ", "files": [ - "dist/" + "dist/", + "src/" ], "scripts": { "build": "rm -rf dist && NODE_OPTIONS=--max_old_space_size=4096 webpack -c webpack.config.js", diff --git a/webpack.config.js b/webpack.config.js index c9b4561..dffa227 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -12,7 +12,7 @@ module.exports = { import: '@gravity-ui/date-utils.2.5.3', }, ...entries.reduce((acc, entry) => { - acc[entry] = `./src/entries/${entry.replace('/', '_')}.ts`; + acc[entry] = path.resolve(__dirname, `./src/entries/${entry.replace('/', '_')}.ts`); return acc; }, {}), },