Skip to content

Commit d016829

Browse files
Adding .npmignore, fixing version #, and modifying tsconfig
1 parent 8fe22f4 commit d016829

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

.npmignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tsconfig.json
2+
src
3+
.idea
4+
cache/
5+
.babelrc
6+
nodemon.json
7+
tslint.json
8+
data/config/

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "@runejs/update-server",
3-
"version": "1.0.0-beta.1",
3+
"version": "1.0.0-beta.0",
44
"description": "RuneJS Game Update Server",
5-
"main": "dist/main.js",
5+
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
67
"scripts": {
78
"start": "nodemon --max-old-space-size=1024 dist/main.js",
89
"lint": "tslint --project tsconfig.json",
910
"build:watch": "tsc --project tsconfig.json && babel ./src --out-dir dist --extensions \".ts,.tsx,.js\" --source-maps --watch",
10-
"build": "rimraf dist && tsc --project tsconfig.json && babel ./src --out-dir dist --extensions \".ts,.tsx,.js\" --source-maps"
11+
"build": "rimraf dist && tsc"
1112
},
1213
"repository": {
1314
"type": "git",

tsconfig.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"compilerOptions": {
3-
"noEmit": true,
43
"module": "commonjs",
54
"target": "es6",
65
"jsx": "preserve",
@@ -12,23 +11,14 @@
1211
"sourceMap": true,
1312
"baseUrl": ".",
1413
"allowJs": true,
15-
"outDir": "./dist/",
14+
"declaration": true,
15+
"outDir": "./dist",
1616
"types": [
1717
"node"
18-
],
19-
"lib": [
20-
"esnext",
21-
"dom",
22-
"dom.iterable",
23-
"scripthost"
2418
]
2519
},
2620
"include": [
27-
"src/**/*.ts",
28-
"src/**/*.tsx",
29-
"src/**/*.vue",
30-
"tests/**/*.ts",
31-
"tests/**/*.tsx"
21+
"src/**/*.ts"
3222
],
3323
"exclude": [
3424
"node_modules"

0 commit comments

Comments
 (0)