Skip to content

Commit a04f483

Browse files
authored
fix(tools): Polyfill copied correctly in all scenarios (#1783)
1 parent e7f380e commit a04f483

File tree

1 file changed

+2
-2
lines changed
  • packages/tools/components-package

1 file changed

+2
-2
lines changed

packages/tools/components-package/nps.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const path = require("path");
22

33
const LIB = path.join(__dirname, `../lib/`);
4-
const NODE_MODULES_PATH = path.join(__dirname, `../../../node_modules/`);
54
const serveConfig = path.join(__dirname, `serve.json`);
6-
const polyfillPath = path.join(NODE_MODULES_PATH, `/@webcomponents/webcomponentsjs/**/*.*`);
5+
const polyfillDir = path.dirname(require.resolve("@webcomponents/webcomponentsjs"));
6+
const polyfillPath = path.join(polyfillDir, "/**/*.*");
77

88
const getScripts = (options) => {
99

0 commit comments

Comments
 (0)