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

[hotfix] improve npm publish practices #35

Merged
merged 1 commit into from
Aug 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .npmignore

This file was deleted.

27 changes: 17 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
{
"name": "truelayer-client",
"version": "1.2.2",
"version": "1.3.1",
"description": "The official TrueLayer API client library",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": "https://github.com/TrueLayer/truelayer-client-javascript.git",
"author": "Jarvis Prestidge <jarvis@truelayer.com> & Raluca Lehadus <raluca@truelayer.com>",
"license": "MIT",
"scripts": {
"prepublishOnly": "npm run build",
"clean": "rm -rf dist",
"build": "npm run clean && tsc -p .",
"lint": "tslint --fix --format verbose *.ts",
"test": "npm run build && ava --verbose dist/test/**/*spec.js",
"retest": "ava --verbose dist/test/**/*spec.js",
"start": "node dist/app.js"
},
"files": [
"dist",
"README.md",
"LICENCE",
"yarn.lock",
"package.json"
],
"devDependencies": {
"@types/sinon": "^2.2.2",
"ava": "^0.19.1",
Expand All @@ -24,14 +40,5 @@
"moment": "^2.18.1",
"request": "^2.81.0",
"request-promise": "^4.2.1"
},
"scripts": {
"prepublishOnly": "npm run build",
"clean": "rm -rf dist",
"build": "npm run clean && tsc -p .",
"lint": "tslint --fix --format verbose *.ts",
"test": "npm run build && ava --verbose dist/test/**/*spec.js",
"retest": "ava --verbose dist/test/**/*spec.js",
"start": "node dist/app.js"
}
}
11 changes: 0 additions & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
{
"compilerOptions": {
"target": "es6",
/* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
"module": "commonjs",
/* Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'. */
"outDir": "dist",
/* Generates corresponding .d.ts file. */
"declaration": true,
/* Redirect output structure to the directory. */
"sourceMap": false,
/* Generates corresponding '.map' file. */
"strict": true,
/* Enable all strict type-checking options. */
"lib": ["es2017"],
/* Include the good stuff. */
},
"exclude": [
"examples",
"node_modules"
],
"include": [
"src",
"test"
Expand Down