From 0eb39ff548332aa4aefb33b19f7cd69e9462564f Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Sat, 19 Sep 2020 16:06:18 +0700 Subject: [PATCH] fixed the publish and remove publish command --- dist/__tests__/index.d.ts | 1 - dist/__tests__/index.js | 7 ------- package.json | 3 +-- src/__tests__/{index.ts => index.js} | 4 ---- 4 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 dist/__tests__/index.d.ts delete mode 100644 dist/__tests__/index.js rename src/__tests__/{index.ts => index.js} (63%) diff --git a/dist/__tests__/index.d.ts b/dist/__tests__/index.d.ts deleted file mode 100644 index cdddcc5..0000000 --- a/dist/__tests__/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare function sumTest(): number; diff --git a/dist/__tests__/index.js b/dist/__tests__/index.js deleted file mode 100644 index 8669b46..0000000 --- a/dist/__tests__/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -function sumTest() { - return 1 + 4; -} -test("test sum with 1 + 4 -> 5", function () { - expect(1 + 4).toBe(5); -}); diff --git a/package.json b/package.json index 9806e10..e8246cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cubetiq/react-use-countdown", - "version": "1.0.7", + "version": "1.10.4", "description": "Count down with trigger", "main": "./dist/index.js", "types": "./dist/index.d.ts", @@ -23,7 +23,6 @@ "build": "tsc", "test": "jest", "build:test": "yarn test && yarn build", - "publish": "yarn build:test && npm publish --registry https://registry.npmjs.com", "run:example": "cd example && yarn start" }, "devDependencies": { diff --git a/src/__tests__/index.ts b/src/__tests__/index.js similarity index 63% rename from src/__tests__/index.ts rename to src/__tests__/index.js index 7d68344..1e12d2b 100644 --- a/src/__tests__/index.ts +++ b/src/__tests__/index.js @@ -1,7 +1,3 @@ -function sumTest() { - return 1 + 4; -} - test(`test sum with 1 + 4 -> 5`, () => { expect(1 + 4).toBe(5); });