Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
Removed package json from build
Browse files Browse the repository at this point in the history
  • Loading branch information
dano-giftbit committed Jan 1, 2019
1 parent d204b55 commit 02b8204
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.2.3
[Fixed Dist Dir](https://github.com/Giftbit/lightrail-client-javascript/pull/32)
- Fixed missing dist folder

## 3.2.1
[Program Creation name](https://github.com/Giftbit/lightrail-client-javascript/pull/31)
- Made Program name required
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lightrail-client",
"version": "3.2.1",
"version": "3.2.3",
"description": "A Javascript and Typescript client for Lightrail",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -61,4 +61,4 @@
"optionalDependencies": {
"superagent-logger": "^1.1.0"
}
}
}
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import * as transactions from "./transactions";
import {LightrailOptions} from "./LightrailOptions";
import {LightrailRequestError} from "./LightrailRequestError";
import {GenerateShopperTokenOptions} from "./GenerateShopperTokenOptions";
import packageJson = require("../package.json");

export {LightrailOptions, LightrailRequestError, contacts, model, params, programs, values, currencies, transactions};

Expand Down Expand Up @@ -92,7 +91,8 @@ export function request(method: string, path: string): superagent.Request {
r.set("Authorization", `Bearer ${configuration.apiKey}`);
}
if (!configuration.isBrowser) {
r.set("User-Agent", `Lightrail-JavaScript/${packageJson.version}`);
//TODO Review how this version get set, previous import of package.json was breaking publish
r.set("User-Agent", "Lightrail-JavaScript/3.2.3");
}
if (configuration.isBrowser) {
r.set("X-Requested-With", "XMLHttpRequest");
Expand Down
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"noImplicitAny": false,
"sourceMap": false,
"declaration": true,
"outDir": "dist",
"resolveJsonModule": true
"outDir": "dist"
},
"include": [
"src/**/*"
Expand All @@ -15,4 +14,4 @@
"node_modules",
"**/*.test.ts"
]
}
}

0 comments on commit 02b8204

Please sign in to comment.