Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit e8a0c62

Browse files
[hotfix] improve npm publish practices
1 parent 71c8d6c commit e8a0c62

File tree

3 files changed

+17
-33
lines changed

3 files changed

+17
-33
lines changed

.npmignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

package.json

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
11
{
22
"name": "truelayer-client",
3-
"version": "1.2.2",
3+
"version": "1.3.1",
44
"description": "The official TrueLayer API client library",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"repository": "https://github.com/TrueLayer/truelayer-client-javascript.git",
88
"author": "Jarvis Prestidge <[email protected]> & Raluca Lehadus <[email protected]>",
99
"license": "MIT",
10+
"scripts": {
11+
"prepublishOnly": "npm run build",
12+
"clean": "rm -rf dist",
13+
"build": "npm run clean && tsc -p .",
14+
"lint": "tslint --fix --format verbose *.ts",
15+
"test": "npm run build && ava --verbose dist/test/**/*spec.js",
16+
"retest": "ava --verbose dist/test/**/*spec.js",
17+
"start": "node dist/app.js"
18+
},
19+
"files": [
20+
"dist",
21+
"README.md",
22+
"LICENCE",
23+
"yarn.lock",
24+
"package.json"
25+
],
1026
"devDependencies": {
1127
"@types/sinon": "^2.2.2",
1228
"ava": "^0.19.1",
@@ -24,14 +40,5 @@
2440
"moment": "^2.18.1",
2541
"request": "^2.81.0",
2642
"request-promise": "^4.2.1"
27-
},
28-
"scripts": {
29-
"prepublishOnly": "npm run build",
30-
"clean": "rm -rf dist",
31-
"build": "npm run clean && tsc -p .",
32-
"lint": "tslint --fix --format verbose *.ts",
33-
"test": "npm run build && ava --verbose dist/test/**/*spec.js",
34-
"retest": "ava --verbose dist/test/**/*spec.js",
35-
"start": "node dist/app.js"
3643
}
3744
}

tsconfig.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
{
22
"compilerOptions": {
33
"target": "es6",
4-
/* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
54
"module": "commonjs",
6-
/* Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'. */
75
"outDir": "dist",
8-
/* Generates corresponding .d.ts file. */
96
"declaration": true,
10-
/* Redirect output structure to the directory. */
117
"sourceMap": false,
12-
/* Generates corresponding '.map' file. */
138
"strict": true,
14-
/* Enable all strict type-checking options. */
159
"lib": ["es2017"],
16-
/* Include the good stuff. */
1710
},
18-
"exclude": [
19-
"examples",
20-
"node_modules"
21-
],
2211
"include": [
2312
"src",
2413
"test"

0 commit comments

Comments
 (0)