Skip to content

Commit 3bbafab

Browse files
authored
Add source to dist for sourcemaps (#182)
We currently generate and distribute source maps, but not the source that the sourcemaps point to. As exemplified by this warning: ``` WARNING in ../../node_modules/@jupyter/ydoc/lib/ytext.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '<root>\node_modules\@jupyter\ydoc\src\ytext.ts' file: Error: ENOENT: no such file or directory, open '<root>\node_modules\@jupyter\ydoc\src\ytext.ts' ``` This change will include the source files in the package dist.
1 parent 0dd94bc commit 3bbafab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

javascript/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"lib": "lib/"
2020
},
2121
"files": [
22-
"lib/**/*.{d.ts,js,js.map,json}"
22+
"lib/**/*.{d.ts,js,js.map,json}",
23+
"src/**/*.{ts}"
2324
],
2425
"scripts": {
2526
"build": "tsc -b",

0 commit comments

Comments
 (0)