Skip to content

Commit 853a8c5

Browse files
committed
Tell TypeScript to not go through dist to load the package itself
To make local builds work
1 parent ce93f4c commit 853a8c5

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
/test
33
/node_modules
44
.tern-*
5+
rollup.config.js
6+
tsconfig.json

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@
4242
"type": "git",
4343
"url": "https://github.com/codemirror/commands.git"
4444
}
45-
}
45+
}

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"newLine": "lf",
1111
"declaration": true,
1212
"declarationMap": true,
13-
"moduleResolution": "node"
13+
"moduleResolution": "node",
14+
"paths": {
15+
"@codemirror/commands": ["./src/commands.ts"]
16+
}
1417
},
1518
"include": ["src/*.ts", "test/*.ts"]
1619
}

0 commit comments

Comments
 (0)