From 760be4b800574d65b01d9063fd3ea32817fd86ea Mon Sep 17 00:00:00 2001 From: Louis Orleans Date: Thu, 30 Nov 2023 10:06:32 -0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20move=20package.json=20cust?= =?UTF-8?q?omization?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 11 ++++++++++- template/package.mustache | 35 ----------------------------------- template/template.patch | 14 -------------- 3 files changed, 10 insertions(+), 50 deletions(-) delete mode 100644 template/package.mustache diff --git a/package.json b/package.json index 89796f9..3b7af41 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,19 @@ "name": "@paciolan/cybersource-sdk", "description": "CyberSource REST API Typescript SDK", "version": "0.3.2", + "author": "Paciolan", + "homepage": "https://github.com/Paciolan/cybersource-sdk/blob/main/README.md", + "repository": { + "type": "git", + "url": "https://github.com/Paciolan/cybersource-sdk" + }, "keywords": [ "cybersource" ], - "license": "Apache-2.0", + "files": [ + "dist/" + ], + "license": "Cybersource", "dependencies": { "axios": "^1.4.0", "jwt-simple": "^0.5.6", diff --git a/template/package.mustache b/template/package.mustache deleted file mode 100644 index 92edf6b..0000000 --- a/template/package.mustache +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "{{npmName}}", - "version": "{{npmVersion}}", - "description": "OpenAPI client for {{npmName}}", - "author": "OpenAPI-Generator Contributors", - "keywords": [ - "axios", - "typescript", - "openapi-client", - "openapi-generator", - "{{npmName}}" - ], - "license": "Unlicense", - "main": "./dist/index.js", - "typings": "./dist/index.d.ts", - "files": [ - "dist/" - ], - "scripts": { - "build": "tsc --outDir dist/", - "prepublishOnly": "npm run build" - }, - "dependencies": { - "axios": "^0.21.1" - }, - "devDependencies": { - "@types/node": "^12.11.5", - "typescript": "^3.6.4" - }{{#npmRepository}},{{/npmRepository}} -{{#npmRepository}} - "publishConfig": { - "registry": "{{npmRepository}}" - } -{{/npmRepository}} -} diff --git a/template/template.patch b/template/template.patch index 6890a60..c5d3a92 100644 --- a/template/template.patch +++ b/template/template.patch @@ -277,20 +277,6 @@ index 999d88df..3d451772 100644 +/*.ts +/git_push.sh +.gitignore -diff --git a/src/main/resources/handlebars/typescript-axios/package.mustache b/src/main/resources/handlebars/typescript-axios/package.mustache -index 6c6114eb..92edf6bc 100644 ---- a/src/main/resources/handlebars/typescript-axios/package.mustache -+++ b/src/main/resources/handlebars/typescript-axios/package.mustache -@@ -13,6 +13,9 @@ - "license": "Unlicense", - "main": "./dist/index.js", - "typings": "./dist/index.d.ts", -+ "files": [ -+ "dist/" -+ ], - "scripts": { - "build": "tsc --outDir dist/", - "prepublishOnly": "npm run build" diff --git a/src/main/resources/handlebars/typescript-axios/tsconfig.mustache b/src/main/resources/handlebars/typescript-axios/tsconfig.mustache index c4a4cc77..9a2ea934 100644 --- a/src/main/resources/handlebars/typescript-axios/tsconfig.mustache