Skip to content

Commit dfdcd1d

Browse files
committed
Add prepare script (so the project can build when using npm i or npm publish)
1 parent 6e2b647 commit dfdcd1d

4 files changed

Lines changed: 2623 additions & 913 deletions

File tree

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azurapi/azurapi",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Open Source Azur Lane Local Database",
55
"main": "./build/index.js",
66
"types": "./build/index.d.ts",
@@ -10,8 +10,9 @@
1010
"lint": "eslint src --ext .ts --fix",
1111
"build": "npm run lint && npm run compile && npm run build:docs && npm run build:docs.json && npm run test",
1212
"build:docs": "npx typedoc --theme typedoc/theme/minami --readme readme.md --out docs/ src/.",
13-
"build:docs.json": "typedoc --json typedoc/docs.json src/."
14-
},
13+
"build:docs.json": "typedoc --json typedoc/docs.json src/.",
14+
"prepare": "npm run build"
15+
},
1516
"author": "XhacKX#0001, 彩雲#5778, August#5820",
1617
"license": "GPL-3.0",
1718
"repository": {

tsconfig.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
"module": "CommonJS",
55
"lib": ["ES2015", "ES2016", "ES2017", "ES2018", "ES2019", "ES2020", "ESNext"],
66
"declaration": true,
7-
"outDir": "build",
7+
"outDir": "./build",
88
"rootDir": "./src",
99
"strict": true,
1010
"noImplicitAny": false,
1111
"moduleResolution": "node",
12-
// typescript ur bad
1312
"types": ["node", "@types/jest"],
1413
"allowSyntheticDefaultImports": true,
1514
"esModuleInterop": true,
@@ -19,4 +18,4 @@
1918
},
2019
"include": ["src/**/*"],
2120
"exclude": ["src/tests", "node_modules"]
22-
}
21+
}

0 commit comments

Comments
 (0)