Skip to content

Commit

Permalink
chore: Fix all package types fields and unify test command (#2587)
Browse files Browse the repository at this point in the history
  • Loading branch information
FossPrime committed Apr 4, 2022
1 parent ae4ebee commit c7612d1
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"update-dependencies": "ncu -u && lerna exec -- ncu -u -x node-fetch",
"clean": "find . -name node_modules -exec rm -rf '{}' + && find . -name package-lock.json -exec rm -rf '{}' +",
"test:deno": "deno test --config deno/tsconfig.json deno/test.ts",
"test": "npm run lint && nyc lerna run test"
"test": "npm run lint && lerna run compile && nyc lerna run test"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.10.2",
Expand Down
3 changes: 1 addition & 2 deletions packages/adapter-commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
"scripts": {
"prepublish": "npm run compile",
"compile": "shx rm -rf lib/ && tsc",
"mocha": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts",
"test": "npm run compile && npm run mocha"
"test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
},
"directories": {
"lib": "lib"
Expand Down
6 changes: 3 additions & 3 deletions packages/adapter-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
"engines": {
"node": ">= 12"
},
"main": "lib/index.js",
"main": "lib/",
"types": "lib/",
"scripts": {
"prepublish": "npm run compile",
"compile": "shx rm -rf lib/ && tsc",
"mocha": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts",
"test": "npm run compile && npm run mocha"
"test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
},
"directories": {
"lib": "lib"
Expand Down
3 changes: 1 addition & 2 deletions packages/authentication-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
"scripts": {
"prepublish": "npm run compile",
"compile": "shx rm -rf lib/ && tsc",
"test": "npm run compile && npm run mocha",
"mocha": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
"test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
},
"directories": {
"lib": "lib"
Expand Down
3 changes: 1 addition & 2 deletions packages/authentication-local/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
"scripts": {
"prepublish": "npm run compile",
"compile": "shx rm -rf lib/ && tsc",
"test": "npm run compile && npm run mocha",
"mocha": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
"test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
},
"directories": {
"lib": "lib"
Expand Down
3 changes: 1 addition & 2 deletions packages/authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
"scripts": {
"prepublish": "npm run compile",
"compile": "shx rm -rf lib/ && tsc",
"test": "npm run compile && npm run mocha",
"mocha": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
"test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
},
"directories": {
"lib": "lib"
Expand Down
3 changes: 1 addition & 2 deletions packages/configuration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
"scripts": {
"prepublish": "npm run compile",
"compile": "shx rm -rf lib/ && tsc",
"test": "npm run compile && npm run mocha",
"mocha": "NODE_CONFIG_DIR=./test/config mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
"test": "NODE_CONFIG_DIR=./test/config mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
},
"semistandard": {
"env": [
Expand Down
1 change: 1 addition & 0 deletions packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "5.0.0-pre.17",
"homepage": "https://feathersjs.com",
"main": "lib/",
"type": "lib/",
"keywords": [
"feathers",
"feathers-plugin"
Expand Down
3 changes: 1 addition & 2 deletions packages/feathers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
"version": "npm run write-version",
"publish": "npm run reset-version",
"compile": "shx rm -rf lib/ && tsc",
"test": "npm run compile && npm run mocha",
"mocha": "mocha --config ../../.mocharc.json --recursive test/"
"test": "mocha --config ../../.mocharc.json --recursive test/"
},
"engines": {
"node": ">= 12"
Expand Down
4 changes: 2 additions & 2 deletions packages/koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "5.0.0-pre.17",
"homepage": "https://feathersjs.com",
"main": "lib/",
"types": "lib/",
"keywords": [
"feathers",
"koajs"
Expand Down Expand Up @@ -38,8 +39,7 @@
"scripts": {
"prepublish": "npm run compile",
"compile": "shx rm -rf lib/ && tsc",
"test": "npm run compile && npm run mocha",
"mocha": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
"test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
},
"directories": {
"lib": "lib"
Expand Down
4 changes: 2 additions & 2 deletions packages/memory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "5.0.0-pre.17",
"homepage": "https://github.com/feathersjs/feathers",
"main": "lib/",
"types": "lib/",
"keywords": [
"feathers",
"feathers-plugin"
Expand Down Expand Up @@ -37,8 +38,7 @@
"scripts": {
"prepublish": "npm run compile",
"compile": "shx rm -rf lib/ && tsc",
"test": "npm run compile && npm run mocha",
"mocha": "mocha --config ../../.mocharc.json --recursive test/**/*.test.ts"
"test": "mocha --config ../../.mocharc.json --recursive test/**/*.test.ts"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/rest-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "REST client services for different Ajax libraries",
"version": "5.0.0-pre.17",
"homepage": "https://feathersjs.com",
"main": "lib/index.js",
"main": "lib/",
"types": "lib/",
"keywords": [
"feathers",
"feathers-plugin"
Expand Down
1 change: 1 addition & 0 deletions packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "5.0.0-pre.17",
"homepage": "https://feathersjs.com",
"main": "lib/",
"types": "lib/",
"keywords": [
"feathers",
"feathers-plugin"
Expand Down
6 changes: 4 additions & 2 deletions packages/socketio-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "The client for Socket.io through feathers-socketio",
"version": "5.0.0-pre.17",
"homepage": "https://feathersjs.com",
"main": "lib/index.js",
"main": "lib/",
"types": "lib/",
"keywords": [
"feathers",
"feathers-plugin"
Expand Down Expand Up @@ -33,7 +34,8 @@
"scripts": {
"prepublish": "npm run compile",
"compile": "shx rm -rf lib/ && tsc",
"test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
"mocha": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts",
"test": "npm run mocha"
},
"directories": {
"lib": "lib"
Expand Down
1 change: 1 addition & 0 deletions packages/socketio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "5.0.0-pre.17",
"homepage": "https://feathersjs.com",
"main": "lib/",
"types": "lib/",
"keywords": [
"feathers",
"feathers-plugin"
Expand Down
1 change: 1 addition & 0 deletions packages/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"version": "5.0.0-pre.17",
"homepage": "https://feathersjs.com",
"main": "lib/",
"types": "lib/",
"keywords": [
"feathers"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/transport-commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"scripts": {
"prepublish": "npm run compile",
"compile": "shx rm -rf lib/ && tsc",
"test": "npm run compile && npm run mocha",
"test": "npm run mocha",
"mocha": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
},
"directories": {
Expand Down

0 comments on commit c7612d1

Please sign in to comment.