From a6a100b5b8ae70440c7d41a6a351f31e12c21cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E6=96=B9=E5=86=B0?= Date: Mon, 18 Jul 2022 18:13:40 +0800 Subject: [PATCH] feat: update test while travis build --- .npmignore | 4 ++++ package.json | 2 +- {src/test => test}/index.test.ts | 2 +- tsconfig.json | 5 ++++- 4 files changed, 10 insertions(+), 3 deletions(-) rename {src/test => test}/index.test.ts (99%) diff --git a/.npmignore b/.npmignore index 4c39753..e9fbc4e 100644 --- a/.npmignore +++ b/.npmignore @@ -23,3 +23,7 @@ rollup.* node_modules tsconfig.json rollup.config.js +.travis.yml +coverage +test +jest.config.js diff --git a/package.json b/package.json index a0d97e6..5f15d7e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bell-crow/pipe-core", - "version": "1.4.0", + "version": "1.4.2", "description": "process data like a pipeline", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", diff --git a/src/test/index.test.ts b/test/index.test.ts similarity index 99% rename from src/test/index.test.ts rename to test/index.test.ts index 12dca39..f7078ba 100644 --- a/src/test/index.test.ts +++ b/test/index.test.ts @@ -1,5 +1,5 @@ /* eslint-disable no-undef */ -import { createPipeCore } from '../core'; +import { createPipeCore } from '../src/core'; const _value = { name: 'pipe-core', diff --git a/tsconfig.json b/tsconfig.json index feeb229..6b099fc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -108,5 +108,8 @@ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ "skipLibCheck": true /* Skip type checking all .d.ts files. */ - } + }, + "exclude": [ + "test" + ] }