Skip to content

Commit 2f4c5bf

Browse files
committed
Use a special package.json to package the compiled runtime
1 parent 54de561 commit 2f4c5bf

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"name": "antlr4ts",
2+
"name": "antlr4ts-root",
33
"version": "0.1.1-SNAPSHOT",
4-
"description": "Antlr4 runtime for JavaScript written in Typescript",
4+
"description": "Root project for ANTLR 4 runtime for Typescript",
5+
"private": true,
56
"main": "index.js",
67
"scripts": {
78
"antlr4ts": "npm run antlr4ts-xpath && npm run antlr4ts-test-std && npm run antlr4ts-test-std-atn && npm run antlr4ts-test-lr && npm run antlr4ts-test-lr-atn",
@@ -18,7 +19,8 @@
1819
"cover": "istanbul cover node_modules/mocha/bin/_mocha",
1920
"postcover": "istanbul report",
2021
"dev-test-watch": "mocha-typescript-watch",
21-
"typedoc": "typedoc --ignoreCompilerErrors --out doc src --name antlr4ts"
22+
"typedoc": "typedoc --ignoreCompilerErrors --out doc src --name antlr4ts",
23+
"pack-runtime": "npm pack target/src"
2224
},
2325
"repository": {
2426
"type": "git",

target/src/.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.tgz

target/src/package.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "antlr4ts",
3+
"version": "0.1.1-SNAPSHOT",
4+
"description": "Antlr4 runtime for JavaScript written in Typescript",
5+
"main": "index.js",
6+
"scripts": {
7+
},
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/sharwell/antlr4ts.git"
11+
},
12+
"keywords": [
13+
"ANTLR4",
14+
"typescript"
15+
],
16+
"author": "Terence Parr, Sam Harwell, and Burt Harris",
17+
"license": "BSD-3-Clause",
18+
"bugs": {
19+
"url": "https://github.com/sharwell/antlr4ts/issues"
20+
},
21+
"homepage": "https://github.com/sharwell/antlr4ts#readme",
22+
"devDependencies": {
23+
},
24+
"dependencies": {
25+
}
26+
}

0 commit comments

Comments
 (0)