Skip to content

Commit a84a9b0

Browse files
committed
Tell TypeScript to not go through dist to load the package itself
To make local builds work
1 parent 63dfd2d commit a84a9b0

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
@@ -35,4 +35,4 @@
3535
"type": "git",
3636
"url": "https://github.com/codemirror/lang-cpp.git"
3737
}
38-
}
38+
}

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/lang-cpp": ["./src/cpp.ts"]
16+
}
1417
},
1518
"include": ["src/*.ts", "test/*.ts"]
1619
}

0 commit comments

Comments
 (0)