From 6ac916da806b3df95e21eb42455fd9d2a5eca525 Mon Sep 17 00:00:00 2001 From: aperron Date: Tue, 4 May 2021 01:09:34 +0200 Subject: [PATCH] v2.0.7 --- package-lock.json | 4 ++-- package.json | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 14b36f1..4d4a86a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "strapi-to-typescript", - "version": "2.0.6", + "version": "2.0.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "strapi-to-typescript", - "version": "2.0.6", + "version": "2.0.7", "license": "MIT", "dependencies": { "command-line-args": "^5.1.1", diff --git a/package.json b/package.json index d1b2f9c..750cd70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "strapi-to-typescript", - "version": "2.0.6", + "version": "2.0.7", "description": "Convert the strapi models to typescript interfaces.", "main": "index.js", "bin": { @@ -8,9 +8,11 @@ }, "scripts": { "start": "tsc -w", - "build": "rm -rf ./dist && tsc && cp ./src/.stsconfig.js ./dist", + "prebuild": "rm -rf ./dist", + "build": "tsc && cp ./src/.stsconfig.js ./dist", "patch-release": "npm version patch && tsc && npm publish && git push --follow-tags", "minor-release": "npm version minor && tsc && npm publish && git push --follow-tags", + "pretest": "rm -rf ./src/test/out*", "test": "ts-node src/test.ts", "test12": "ts-node src/test.ts test1 test2", "prepublishOnly": "npm run build && npm run test"