diff --git a/.gitignore b/.gitignore index 904507d..143fabd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ - +bin node_modules solaris output diff --git a/package-lock.json b/package-lock.json index afb8d27..c8d372f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,20 @@ { - "name": "postman2httpyac", + "name": "httpyac-import", "version": "0.3.2", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "postman2httpyac", + "name": "httpyac-import", "version": "0.3.2", "license": "ISC", "dependencies": { "postman-collection": "^4.5.0", "ts-command-line-args": "^2.5.1" }, + "bin": { + "httpyac-import": "bin/httpyac-import.js" + }, "devDependencies": { "@types/jest": "^29.5.12", "@types/postman-collection": "^3.5.10", diff --git a/package.json b/package.json index 2f59277..d09a1f4 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,21 @@ { "name": "httpyac-import", - "version": "0.3.2", + "version": "0.3.3", "description": "CLI to convert Postman collection to httpyac files", + "homepage": "https://github.com/matthewturner/httpyac-import", + "repository": { + "type": "git", + "url": "https://github.com/matthewturner/httpyac-import" + }, + "bugs": { + "url": "https://github.com/matthewturner/httpyac-import/issues" + }, "main": "./src/app.ts", + "bin": { + "httpyac-import": "./bin/httpyac-import.js" + }, "scripts": { + "build": "npx tsc", "test": "jest", "convert": "ts-node ./src/app.ts" }, @@ -29,4 +41,4 @@ "ts-node": "^10.9.2", "typescript": "^5.5.4" } -} +} \ No newline at end of file diff --git a/src/options.ts b/src/Options.ts similarity index 98% rename from src/options.ts rename to src/Options.ts index 640e8c3..d742f23 100644 --- a/src/options.ts +++ b/src/Options.ts @@ -3,4 +3,4 @@ export interface IOptions { targetPath: string; ignoreHeaders?: string[]; help?: boolean; -} \ No newline at end of file +} diff --git a/tests/RequestDefinitionBuilder.test.ts b/src/tests/RequestDefinitionBuilder.test.ts similarity index 97% rename from tests/RequestDefinitionBuilder.test.ts rename to src/tests/RequestDefinitionBuilder.test.ts index 4a2d789..33fd182 100644 --- a/tests/RequestDefinitionBuilder.test.ts +++ b/src/tests/RequestDefinitionBuilder.test.ts @@ -1,4 +1,4 @@ -import { RequestDefinitionBuilder } from '../src/RequestDefinitionBuilder'; +import { RequestDefinitionBuilder } from '../RequestDefinitionBuilder'; import { Item, ItemGroup, Collection, Url, Header, RequestBody } from 'postman-collection'; import { readFileSync } from 'fs';