diff --git a/package.json b/package.json index 570d9e9..60021eb 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "scripts": { "release": "lerna publish", "test": "cross-env ./scripts/prepare.sh", - "test_once": "cross-env ./scripts/prepare.sh v3/midway-serverless-http-new-esm", + "test_once": "cross-env ./scripts/prepare.sh v3/midway-serverless-http-new", "build": "lerna run build" }, "engines": { diff --git a/v3/midway-serverless-http-new-esm/boilerplate/_package.json b/v3/midway-serverless-http-new-esm/boilerplate/_package.json index cfc8a76..6c0aa8d 100644 --- a/v3/midway-serverless-http-new-esm/boilerplate/_package.json +++ b/v3/midway-serverless-http-new-esm/boilerplate/_package.json @@ -23,7 +23,7 @@ "@midwayjs/core": "^3.12.0", "@midwayjs/faas": "^3.12.0", "@midwayjs/fc-starter": "^3.12.0", - "@midwayjs/logger": "^2.0.0" + "@midwayjs/logger": "^3.1.0" }, "devDependencies": { "@midwayjs/mock": "^3.12.0", diff --git a/v3/midway-serverless-http-new/boilerplate/_.mocharc.json b/v3/midway-serverless-http-new/boilerplate/_.mocharc.json index f63797e..b944748 100644 --- a/v3/midway-serverless-http-new/boilerplate/_.mocharc.json +++ b/v3/midway-serverless-http-new/boilerplate/_.mocharc.json @@ -1,6 +1,5 @@ { "extension": ["ts"], - "node-option": ["no-warnings", "loader=ts-node/register"], "spec": ["test/**/*.test.ts"], "require": ["test/setup.ts"] } \ No newline at end of file diff --git a/v3/midway-serverless-http-new/boilerplate/_package.json b/v3/midway-serverless-http-new/boilerplate/_package.json index 7dbc4d9..84f5649 100644 --- a/v3/midway-serverless-http-new/boilerplate/_package.json +++ b/v3/midway-serverless-http-new/boilerplate/_package.json @@ -3,6 +3,7 @@ "private": true, "version": "1.0.0", "description": "Midway Serverless for the Serverless environment", + "type": "commonjs", "main": "index.js", "license": "MIT", "keywords": [ @@ -11,8 +12,8 @@ ], "scripts": { "dev": "cross-env NODE_ENV=local mwtsc --watch --run @midwayjs/mock/function --port 7001", - "test": "cross-env NODE_ENV=unittest mocha", - "cov": "cross-env c8 --all --reporter=text --reporter=lcovonly npm run test", + "test": "cross-env NODE_ENV=unittest node -r ts-node/register ./node_modules/.bin/mocha", + "cov": "cross-env c8 --include src --all --reporter=text --reporter=lcovonly npm run test", "deploy": "", "lint": "mwts check", "lint:fix": "mwts fix", @@ -23,7 +24,7 @@ "@midwayjs/core": "^3.12.0", "@midwayjs/faas": "^3.12.0", "@midwayjs/fc-starter": "^3.12.0", - "@midwayjs/logger": "^2.0.0" + "@midwayjs/logger": "^3.1.0" }, "devDependencies": { "@midwayjs/mock": "^3.12.0",