From 2bacf86d3c70fd56d3a01c5e80e11b3d14d97807 Mon Sep 17 00:00:00 2001 From: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> Date: Tue, 27 Aug 2024 10:31:38 +0200 Subject: [PATCH] chore: Remove `prepublishOnly` script (#8699) * wip * wip * verbose logging * remove prepublish scripts * chore: add back prepublish scripts * wip * remove prepublishOnly script * chore: Clean up rest of build scripts * add back build script * feedback --------- Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com> --- packages/cli/create-medusa-app/package.json | 3 +-- packages/cli/medusa-cli/package.json | 3 +-- packages/cli/medusa-dev-cli/package.json | 1 - packages/cli/oas/medusa-oas-cli/package.json | 1 - packages/core/core-flows/package.json | 1 - packages/core/js-sdk/package.json | 1 - packages/core/medusa-test-utils/package.json | 2 -- packages/core/modules-sdk/package.json | 1 - packages/core/orchestration/package.json | 1 - packages/core/types/package.json | 1 - packages/core/utils/package.json | 1 - packages/core/utils/src/dml/__tests__/entity-builder.spec.ts | 3 +-- packages/core/workflows-sdk/package.json | 1 - packages/framework/framework/package.json | 1 - packages/framework/framework/tsconfig.build.json | 2 +- packages/medusa/package.json | 5 ----- packages/modules/api-key/package.json | 1 - packages/modules/auth/package.json | 1 - packages/modules/cache-inmemory/package.json | 1 - packages/modules/cache-redis/package.json | 1 - packages/modules/cart/package.json | 1 - packages/modules/currency/package.json | 1 - packages/modules/customer/package.json | 1 - packages/modules/event-bus-local/package.json | 1 - packages/modules/event-bus-redis/package.json | 1 - packages/modules/file/package.json | 1 - packages/modules/fulfillment/package.json | 1 - packages/modules/inventory-next/package.json | 1 - packages/modules/notification/package.json | 1 - packages/modules/order/package.json | 1 - packages/modules/payment/package.json | 1 - packages/modules/pricing/package.json | 1 - packages/modules/product/package.json | 1 - packages/modules/promotion/package.json | 1 - packages/modules/providers/auth-emailpass/package.json | 3 +-- packages/modules/providers/auth-google/package.json | 3 +-- packages/modules/providers/file-local/package.json | 3 +-- packages/modules/providers/file-s3/package.json | 3 +-- packages/modules/providers/fulfillment-manual/package.json | 3 +-- packages/modules/providers/notification-local/package.json | 3 +-- .../modules/providers/notification-sendgrid/package.json | 3 +-- packages/modules/providers/payment-stripe/package.json | 3 +-- packages/modules/region/package.json | 1 - packages/modules/sales-channel/package.json | 1 - packages/modules/stock-location-next/package.json | 1 - packages/modules/store/package.json | 1 - packages/modules/tax/package.json | 1 - packages/modules/user/package.json | 1 - packages/modules/workflow-engine-inmemory/package.json | 1 - packages/modules/workflow-engine-redis/package.json | 1 - www/utils/packages/react-docs-generator/package.json | 3 +-- yarn.lock | 4 ---- 52 files changed, 13 insertions(+), 72 deletions(-) diff --git a/packages/cli/create-medusa-app/package.json b/packages/cli/create-medusa-app/package.json index 38c6bb9700..e34db71cb4 100644 --- a/packages/cli/create-medusa-app/package.json +++ b/packages/cli/create-medusa-app/package.json @@ -10,8 +10,7 @@ "dev": "node --loader ts-node/esm src/index.ts", "start": "node dist/index.js", "build": "tsc", - "watch": "tsc --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build" + "watch": "tsc --watch" }, "dependencies": { "@medusajs/utils": "^1.11.9", diff --git a/packages/cli/medusa-cli/package.json b/packages/cli/medusa-cli/package.json index aa19f1c148..ea548637c0 100644 --- a/packages/cli/medusa-cli/package.json +++ b/packages/cli/medusa-cli/package.json @@ -24,8 +24,7 @@ "scripts": { "test": "jest --passWithNoTests src", "build": "rimraf dist && tsc", - "watch": "tsc --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build" + "watch": "tsc --watch" }, "author": "Sebastian Rindom", "license": "MIT", diff --git a/packages/cli/medusa-dev-cli/package.json b/packages/cli/medusa-dev-cli/package.json index 315e2d4b00..532c4e00f0 100644 --- a/packages/cli/medusa-dev-cli/package.json +++ b/packages/cli/medusa-dev-cli/package.json @@ -43,7 +43,6 @@ "directory": "packages/medusa-dev-cli" }, "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "test": "jest --passWithNoTests -- src", "build": "tsc", "watch": "tsc --watch" diff --git a/packages/cli/oas/medusa-oas-cli/package.json b/packages/cli/oas/medusa-oas-cli/package.json index 658a8af2e1..a51fbb70ee 100644 --- a/packages/cli/oas/medusa-oas-cli/package.json +++ b/packages/cli/oas/medusa-oas-cli/package.json @@ -31,7 +31,6 @@ "uuid": "^9.0.0" }, "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "build": "tsc --build", "medusa-oas": "ts-node src/index.ts" }, diff --git a/packages/core/core-flows/package.json b/packages/core/core-flows/package.json index 58625da11c..157e03111b 100644 --- a/packages/core/core-flows/package.json +++ b/packages/core/core-flows/package.json @@ -40,7 +40,6 @@ "ulid": "^2.3.0" }, "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "build": "rimraf dist && tsc --build", "watch": "tsc --build --watch", "test": "jest --runInBand --bail --forceExit --passWithNoTests" diff --git a/packages/core/js-sdk/package.json b/packages/core/js-sdk/package.json index 756f0ecb4b..eec9957449 100644 --- a/packages/core/js-sdk/package.json +++ b/packages/core/js-sdk/package.json @@ -31,7 +31,6 @@ "qs": "^6.12.1" }, "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "build": "rimraf dist && tsc --build", "test": "jest --passWithNoTests --runInBand --bail --forceExit", "watch": "tsc --build --watch" diff --git a/packages/core/medusa-test-utils/package.json b/packages/core/medusa-test-utils/package.json index f342351f0a..4b5add556f 100644 --- a/packages/core/medusa-test-utils/package.json +++ b/packages/core/medusa-test-utils/package.json @@ -12,8 +12,6 @@ "node": ">=16" }, "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", - "prepare": "cross-env NODE_ENV=production yarn run build", "build": "rimraf dist && tsc --build", "watch": "tsc --build --watch", "test": "jest --passWithNoTests src" diff --git a/packages/core/modules-sdk/package.json b/packages/core/modules-sdk/package.json index b51bea131a..1aad2b27a5 100644 --- a/packages/core/modules-sdk/package.json +++ b/packages/core/modules-sdk/package.json @@ -39,7 +39,6 @@ "awilix": "^8.0.1" }, "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "build": "rimraf dist && tsc --build", "test": "jest --runInBand --bail --forceExit", "watch": "tsc --build --watch" diff --git a/packages/core/orchestration/package.json b/packages/core/orchestration/package.json index ea1dbf1b1d..3c84924421 100644 --- a/packages/core/orchestration/package.json +++ b/packages/core/orchestration/package.json @@ -34,7 +34,6 @@ "awilix": "^8.0.1" }, "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "build": "rimraf dist && tsc --build", "watch": "tsc --build --watch", "test": "jest --runInBand --bail --forceExit" diff --git a/packages/core/types/package.json b/packages/core/types/package.json index 06ede67d56..2f883ba034 100644 --- a/packages/core/types/package.json +++ b/packages/core/types/package.json @@ -31,7 +31,6 @@ "winston": "^3.8.2" }, "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "build": "rimraf dist && tsc --build", "watch": "tsc --build --watch", "test": "exit 0" diff --git a/packages/core/utils/package.json b/packages/core/utils/package.json index e88ece259e..3218ca54b5 100644 --- a/packages/core/utils/package.json +++ b/packages/core/utils/package.json @@ -46,7 +46,6 @@ "ulid": "^2.3.0" }, "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "build": "rimraf dist && tsc --build", "watch": "tsc --build --watch", "test": "jest --silent --bail --maxWorkers=50% --forceExit --testPathIgnorePatterns='/integration-tests/' -- src/**/__tests__/**/*.ts", diff --git a/packages/core/utils/src/dml/__tests__/entity-builder.spec.ts b/packages/core/utils/src/dml/__tests__/entity-builder.spec.ts index b3fc5023dd..07125e7923 100644 --- a/packages/core/utils/src/dml/__tests__/entity-builder.spec.ts +++ b/packages/core/utils/src/dml/__tests__/entity-builder.spec.ts @@ -2,13 +2,12 @@ import { ArrayType, EntityMetadata, MetadataStorage } from "@mikro-orm/core" import { expectTypeOf } from "expect-type" import { DmlEntity } from "../entity" import { model } from "../entity-builder" +import { DuplicateIdPropertyError } from "../errors" import { createMikrORMEntity, toMikroOrmEntities, toMikroORMEntity, } from "../helpers/create-mikro-orm-entity" -import { User } from "@medusajs/icons" -import { DuplicateIdPropertyError } from "../errors" describe("Entity builder", () => { beforeEach(() => { diff --git a/packages/core/workflows-sdk/package.json b/packages/core/workflows-sdk/package.json index 743db51752..d62782ee51 100644 --- a/packages/core/workflows-sdk/package.json +++ b/packages/core/workflows-sdk/package.json @@ -37,7 +37,6 @@ "ulid": "^2.3.0" }, "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "build": "rimraf dist && tsc --build", "watch": "tsc --build --watch", "test": "jest --runInBand --bail --forceExit", diff --git a/packages/framework/framework/package.json b/packages/framework/framework/package.json index 3cf686f7e1..ef37b1d380 100644 --- a/packages/framework/framework/package.json +++ b/packages/framework/framework/package.json @@ -33,7 +33,6 @@ "scripts": { "watch": "tsc --watch -p ./tsconfig.build.json", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc -p ./tsconfig.build.json && tsc-alias -p ./tsconfig.build.json", "build": "rimraf dist && tsc --noEmit && tsc -p ./tsconfig.build.json && tsc-alias -p ./tsconfig.build.json", "test": "jest --runInBand --bail --passWithNoTests --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts" diff --git a/packages/framework/framework/tsconfig.build.json b/packages/framework/framework/tsconfig.build.json index 5ea8eebe6d..2ce34105bc 100644 --- a/packages/framework/framework/tsconfig.build.json +++ b/packages/framework/framework/tsconfig.build.json @@ -1,5 +1,5 @@ { - "extends": "./tsconfig", + "extends": "./tsconfig.json", "include": ["src"], "exclude": [ "dist", diff --git a/packages/medusa/package.json b/packages/medusa/package.json index 618decaf19..7d3fdfb0eb 100644 --- a/packages/medusa/package.json +++ b/packages/medusa/package.json @@ -36,7 +36,6 @@ }, "scripts": { "watch": "tsc --build --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "build": "rimraf dist && tsc --build", "serve": "node dist/app.js", "test": "jest --silent --bail --maxWorkers=50% --forceExit" @@ -64,14 +63,10 @@ "cookie-parser": "^1.4.6", "cors": "^2.8.5", "express": "^4.18.2", - "express-session": "^1.17.3", "fs-exists-cached": "^1.0.0", "glob": "^7.1.6", - "ioredis": "^5.4.1", - "ioredis-mock": "8.4.0", "lodash": "^4.17.21", "medusa-telemetry": "^0.0.17", - "morgan": "^1.9.1", "multer": "^1.4.5-lts.1", "node-schedule": "^2.1.1", "qs": "^6.11.2", diff --git a/packages/modules/api-key/package.json b/packages/modules/api-key/package.json index 32b62b0b62..dc8a885b17 100644 --- a/packages/modules/api-key/package.json +++ b/packages/modules/api-key/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/auth/package.json b/packages/modules/auth/package.json index c7231bb827..580f6ce284 100644 --- a/packages/modules/auth/package.json +++ b/packages/modules/auth/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --passWithNoTests --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/cache-inmemory/package.json b/packages/modules/cache-inmemory/package.json index fe786e96fb..9d610b0d81 100644 --- a/packages/modules/cache-inmemory/package.json +++ b/packages/modules/cache-inmemory/package.json @@ -28,7 +28,6 @@ }, "scripts": { "watch": "tsc --build --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "build": "rimraf dist && tsc --build", "test": "jest --passWithNoTests" }, diff --git a/packages/modules/cache-redis/package.json b/packages/modules/cache-redis/package.json index 378b1a2ce3..70d629e74e 100644 --- a/packages/modules/cache-redis/package.json +++ b/packages/modules/cache-redis/package.json @@ -28,7 +28,6 @@ }, "scripts": { "watch": "tsc --build --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "build": "rimraf dist && tsc --build", "test": "jest --passWithNoTests" }, diff --git a/packages/modules/cart/package.json b/packages/modules/cart/package.json index 47b1655d3b..3dd6efbfa1 100644 --- a/packages/modules/cart/package.json +++ b/packages/modules/cart/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --passWithNoTests --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/currency/package.json b/packages/modules/currency/package.json index 02f4e6b2cb..05d5fb7ec6 100644 --- a/packages/modules/currency/package.json +++ b/packages/modules/currency/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/customer/package.json b/packages/modules/customer/package.json index 5575d2cf48..42cd56e523 100644 --- a/packages/modules/customer/package.json +++ b/packages/modules/customer/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --passWithNoTests --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/event-bus-local/package.json b/packages/modules/event-bus-local/package.json index 811c49ff6e..5ca1c02765 100644 --- a/packages/modules/event-bus-local/package.json +++ b/packages/modules/event-bus-local/package.json @@ -28,7 +28,6 @@ }, "scripts": { "watch": "tsc --build --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "build": "rimraf dist && tsc --build", "test": "jest --passWithNoTests" }, diff --git a/packages/modules/event-bus-redis/package.json b/packages/modules/event-bus-redis/package.json index c4377b67eb..680f35f164 100644 --- a/packages/modules/event-bus-redis/package.json +++ b/packages/modules/event-bus-redis/package.json @@ -29,7 +29,6 @@ }, "scripts": { "watch": "tsc --build --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "build": "rimraf dist && tsc --build", "test": "jest --silent --bail --maxWorkers=50% --forceExit" }, diff --git a/packages/modules/file/package.json b/packages/modules/file/package.json index 020c4670ac..dab721ebf3 100644 --- a/packages/modules/file/package.json +++ b/packages/modules/file/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --passWithNoTests --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --passWithNoTests --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/fulfillment/package.json b/packages/modules/fulfillment/package.json index 5ef2736b2d..d5ece4686c 100644 --- a/packages/modules/fulfillment/package.json +++ b/packages/modules/fulfillment/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --forceExit --passWithNoTests -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", diff --git a/packages/modules/inventory-next/package.json b/packages/modules/inventory-next/package.json index 69c053784b..b3c225d150 100644 --- a/packages/modules/inventory-next/package.json +++ b/packages/modules/inventory-next/package.json @@ -42,7 +42,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --runInBand --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", diff --git a/packages/modules/notification/package.json b/packages/modules/notification/package.json index 109cdef43c..dcc53d821a 100644 --- a/packages/modules/notification/package.json +++ b/packages/modules/notification/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --forceExit --passWithNoTests -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", diff --git a/packages/modules/order/package.json b/packages/modules/order/package.json index 1c134c5c7f..2080ac5d20 100644 --- a/packages/modules/order/package.json +++ b/packages/modules/order/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/payment/package.json b/packages/modules/payment/package.json index 0181989301..3ef2266bd6 100644 --- a/packages/modules/payment/package.json +++ b/packages/modules/payment/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --passWithNoTests --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/pricing/package.json b/packages/modules/pricing/package.json index 29da0b1a8d..110b9739ed 100644 --- a/packages/modules/pricing/package.json +++ b/packages/modules/pricing/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/product/package.json b/packages/modules/product/package.json index 4f3e8882bd..1b3ca9d4e5 100644 --- a/packages/modules/product/package.json +++ b/packages/modules/product/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/promotion/package.json b/packages/modules/promotion/package.json index fb825015e3..4b5757145c 100644 --- a/packages/modules/promotion/package.json +++ b/packages/modules/promotion/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --passWithNoTests --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/providers/auth-emailpass/package.json b/packages/modules/providers/auth-emailpass/package.json index 019394833b..420200dfc6 100644 --- a/packages/modules/providers/auth-emailpass/package.json +++ b/packages/modules/providers/auth-emailpass/package.json @@ -17,10 +17,9 @@ "author": "Medusa", "license": "MIT", "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "test": "jest --passWithNoTests src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", - "build": "rimraf dist && tsc -p ./tsconfig.json", + "build": "rimraf dist && tsc --build", "watch": "tsc --watch" }, "devDependencies": { diff --git a/packages/modules/providers/auth-google/package.json b/packages/modules/providers/auth-google/package.json index f77afc487e..df8b4f82e7 100644 --- a/packages/modules/providers/auth-google/package.json +++ b/packages/modules/providers/auth-google/package.json @@ -17,10 +17,9 @@ "author": "Medusa", "license": "MIT", "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "test": "jest --passWithNoTests src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", - "build": "rimraf dist && tsc -p ./tsconfig.json", + "build": "rimraf dist && tsc --build", "watch": "tsc --watch" }, "devDependencies": { diff --git a/packages/modules/providers/file-local/package.json b/packages/modules/providers/file-local/package.json index c79b28c17b..4ae2c375c9 100644 --- a/packages/modules/providers/file-local/package.json +++ b/packages/modules/providers/file-local/package.json @@ -17,9 +17,8 @@ "author": "Medusa", "license": "MIT", "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "test": "jest --passWithNoTests src", - "build": "rimraf dist && tsc -p ./tsconfig.json", + "build": "rimraf dist && tsc --build ./tsconfig.json", "watch": "tsc --watch" }, "devDependencies": { diff --git a/packages/modules/providers/file-s3/package.json b/packages/modules/providers/file-s3/package.json index 0fbdfec98e..eb2f4ba77c 100644 --- a/packages/modules/providers/file-s3/package.json +++ b/packages/modules/providers/file-s3/package.json @@ -17,10 +17,9 @@ "author": "Medusa", "license": "MIT", "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "test": "jest --passWithNoTests src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", - "build": "rimraf dist && tsc -p ./tsconfig.json", + "build": "rimraf dist && tsc --build ./tsconfig.json", "watch": "tsc --watch" }, "devDependencies": { diff --git a/packages/modules/providers/fulfillment-manual/package.json b/packages/modules/providers/fulfillment-manual/package.json index a13b55767b..0c96155467 100644 --- a/packages/modules/providers/fulfillment-manual/package.json +++ b/packages/modules/providers/fulfillment-manual/package.json @@ -17,9 +17,8 @@ "author": "Medusa", "license": "MIT", "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "test": "jest --passWithNoTests src", - "build": "rimraf dist && tsc -p ./tsconfig.json", + "build": "rimraf dist && tsc --build ./tsconfig.json", "watch": "tsc --watch" }, "devDependencies": { diff --git a/packages/modules/providers/notification-local/package.json b/packages/modules/providers/notification-local/package.json index 41dac22557..0d4f578d18 100644 --- a/packages/modules/providers/notification-local/package.json +++ b/packages/modules/providers/notification-local/package.json @@ -17,10 +17,9 @@ "author": "Medusa", "license": "MIT", "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "test": "jest --passWithNoTests src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", - "build": "rimraf dist && tsc -p ./tsconfig.json", + "build": "rimraf dist && tsc --build ./tsconfig.json", "watch": "tsc --watch" }, "devDependencies": { diff --git a/packages/modules/providers/notification-sendgrid/package.json b/packages/modules/providers/notification-sendgrid/package.json index eafa6fc4d4..924fa621c6 100644 --- a/packages/modules/providers/notification-sendgrid/package.json +++ b/packages/modules/providers/notification-sendgrid/package.json @@ -17,10 +17,9 @@ "author": "Medusa", "license": "MIT", "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "test": "jest --passWithNoTests src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", - "build": "rimraf dist && tsc -p ./tsconfig.json", + "build": "rimraf dist && tsc --build ./tsconfig.json", "watch": "tsc --watch" }, "devDependencies": { diff --git a/packages/modules/providers/payment-stripe/package.json b/packages/modules/providers/payment-stripe/package.json index 65341327fa..5660423b77 100644 --- a/packages/modules/providers/payment-stripe/package.json +++ b/packages/modules/providers/payment-stripe/package.json @@ -17,9 +17,8 @@ "author": "Medusa", "license": "MIT", "scripts": { - "prepublishOnly": "cross-env NODE_ENV=production tsc --build", "test": "jest --passWithNoTests src", - "build": "rimraf dist && tsc -p ./tsconfig.json", + "build": "rimraf dist && tsc --build ./tsconfig.json", "watch": "tsc --watch" }, "devDependencies": { diff --git a/packages/modules/region/package.json b/packages/modules/region/package.json index d0eef59846..008b303b15 100644 --- a/packages/modules/region/package.json +++ b/packages/modules/region/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --passWithNoTests --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/sales-channel/package.json b/packages/modules/sales-channel/package.json index 5283e16408..9ebf5530df 100644 --- a/packages/modules/sales-channel/package.json +++ b/packages/modules/sales-channel/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/stock-location-next/package.json b/packages/modules/stock-location-next/package.json index 892a97579c..37c9043378 100644 --- a/packages/modules/stock-location-next/package.json +++ b/packages/modules/stock-location-next/package.json @@ -42,7 +42,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --runInBand --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", diff --git a/packages/modules/store/package.json b/packages/modules/store/package.json index dd5486f489..16422cd79a 100644 --- a/packages/modules/store/package.json +++ b/packages/modules/store/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/tax/package.json b/packages/modules/tax/package.json index 94c61f1ec1..ccfab351e4 100644 --- a/packages/modules/tax/package.json +++ b/packages/modules/tax/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", diff --git a/packages/modules/user/package.json b/packages/modules/user/package.json index 4daf25668a..748da18781 100644 --- a/packages/modules/user/package.json +++ b/packages/modules/user/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --runInBand --passWithNoTests --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/workflow-engine-inmemory/package.json b/packages/modules/workflow-engine-inmemory/package.json index 713bd79819..cb60ad9477 100644 --- a/packages/modules/workflow-engine-inmemory/package.json +++ b/packages/modules/workflow-engine-inmemory/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --passWithNoTests --runInBand --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/packages/modules/workflow-engine-redis/package.json b/packages/modules/workflow-engine-redis/package.json index c47c2535c6..e56f551234 100644 --- a/packages/modules/workflow-engine-redis/package.json +++ b/packages/modules/workflow-engine-redis/package.json @@ -23,7 +23,6 @@ "scripts": { "watch": "tsc --build --watch", "watch:test": "tsc --build tsconfig.spec.json --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", "test": "jest --passWithNoTests --runInBand --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", diff --git a/www/utils/packages/react-docs-generator/package.json b/www/utils/packages/react-docs-generator/package.json index cfe1e4cdf9..e72ca1dfe6 100644 --- a/www/utils/packages/react-docs-generator/package.json +++ b/www/utils/packages/react-docs-generator/package.json @@ -6,8 +6,7 @@ "start": "node dist/index.js", "generate:ui": "yarn start --src ../../../../packages/design-system/ui/src --output ../../../apps/ui/src/specs --clean", "build": "tsc", - "watch": "tsc --watch", - "prepublishOnly": "cross-env NODE_ENV=production tsc --build" + "watch": "tsc --watch" }, "publishConfig": { "access": "public" diff --git a/yarn.lock b/yarn.lock index 28b48c914a..0efbc9ef5e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4933,15 +4933,11 @@ __metadata: cors: ^2.8.5 cross-env: ^5.2.1 express: ^4.18.2 - express-session: ^1.17.3 fs-exists-cached: ^1.0.0 glob: ^7.1.6 - ioredis: ^5.4.1 - ioredis-mock: 8.4.0 jest: ^29.7.0 lodash: ^4.17.21 medusa-telemetry: ^0.0.17 - morgan: ^1.9.1 multer: ^1.4.5-lts.1 node-schedule: ^2.1.1 qs: ^6.11.2