diff --git a/.circleci/config.yml b/.circleci/config.yml index dca2b11..f29e599 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -39,7 +39,6 @@ jobs: key: v{{ .Environment.CIRCLECI_CACHE_VERSION }}-dependencies-{{ .Branch }}-{{ checksum "deps.txt" }} - run: yarn ci-test - run: yarn type-check - - run: yarn build workflows: version: 2.1 test_deploy: diff --git a/package.json b/package.json index 45b03ae..bfff9f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "power-crypt", - "version": "0.1.4", + "version": "0.2.2", "description": "", "repository": "https://github.com/phenyl-js/power-crypt", "license": "Apache-2.0", @@ -17,6 +17,8 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "clean": "rm -rf lib", + "prepare": "yarn clean && yarn build", "build": "tsc --declaration", "ci-test": "nyc mocha --require ts-node/register 'test/**/*.ts' --color always", "test": "mocha --require ts-node/register 'test/**/*.ts' --color always", diff --git a/tsconfig.json b/tsconfig.json index 08a03c6..0c5fa5e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -60,5 +60,5 @@ // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ }, - "exclude": ["test"] + "include": ["src/**/*"] }