fixed the publish and remove publish command

This commit is contained in:
Sambo Chea 2020-09-19 16:06:18 +07:00
parent 1237376e19
commit 0eb39ff548
4 changed files with 1 additions and 14 deletions

View File

@ -1 +0,0 @@
declare function sumTest(): number;

View File

@ -1,7 +0,0 @@
"use strict";
function sumTest() {
return 1 + 4;
}
test("test sum with 1 + 4 -> 5", function () {
expect(1 + 4).toBe(5);
});

View File

@ -1,6 +1,6 @@
{ {
"name": "@cubetiq/react-use-countdown", "name": "@cubetiq/react-use-countdown",
"version": "1.0.7", "version": "1.10.4",
"description": "Count down with trigger", "description": "Count down with trigger",
"main": "./dist/index.js", "main": "./dist/index.js",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
@ -23,7 +23,6 @@
"build": "tsc", "build": "tsc",
"test": "jest", "test": "jest",
"build:test": "yarn test && yarn build", "build:test": "yarn test && yarn build",
"publish": "yarn build:test && npm publish --registry https://registry.npmjs.com",
"run:example": "cd example && yarn start" "run:example": "cd example && yarn start"
}, },
"devDependencies": { "devDependencies": {

View File

@ -1,7 +1,3 @@
function sumTest() {
return 1 + 4;
}
test(`test sum with 1 + 4 -> 5`, () => { test(`test sum with 1 + 4 -> 5`, () => {
expect(1 + 4).toBe(5); expect(1 + 4).toBe(5);
}); });