fix(medusa): test, build and watch scripts (#3025)

This commit is contained in:
Adrien de Peretti
2023-01-15 17:10:26 +01:00
committed by GitHub
parent f6ec05f3f9
commit 93d0dc1bdc
32 changed files with 130 additions and 90 deletions

View File

@@ -0,0 +1,35 @@
---
"gatsby-source-medusa": patch
"@medusajs/medusa-cli": patch
"medusa-dev-cli": patch
"medusa-file-minio": patch
"medusa-file-s3": patch
"medusa-file-spaces": patch
"medusa-fulfillment-manual": patch
"medusa-fulfillment-webshipper": patch
"medusa-interfaces": patch
"medusa-payment-adyen": patch
"medusa-payment-klarna": patch
"medusa-payment-manual": patch
"medusa-payment-paypal": patch
"medusa-payment-stripe": patch
"medusa-plugin-algolia": patch
"medusa-plugin-brightpearl": patch
"medusa-plugin-contentful": patch
"medusa-plugin-discount-generator": patch
"medusa-plugin-economic": patch
"medusa-plugin-ip-lookup": patch
"medusa-plugin-mailchimp": patch
"medusa-plugin-meilisearch": patch
"medusa-plugin-restock-notification": patch
"medusa-plugin-segment": patch
"medusa-plugin-sendgrid": patch
"medusa-plugin-slack-notification": patch
"medusa-plugin-twilio-sms": patch
"medusa-plugin-wishlist": patch
"medusa-source-shopify": patch
"medusa-telemetry": patch
"@medusajs/medusa": patch
---
fix(medusa): test, build and watch scripts

View File

@@ -2,6 +2,9 @@ node_modules
.DS_Store
utils
*.js
*.js.map
*.d.ts

View File

@@ -15,10 +15,10 @@
"access": "public"
},
"scripts": {
"test": "jest",
"build": "babel src --out-dir dist/ --ignore **/__tests__",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir dist/ --ignore **/__tests__"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir dist/ --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir dist/ --ignore '**/__tests__','**/__mocks__'",
"prepare": "cross-env NODE_ENV=production yarn run build"
},
"author": "Sebastian Rindom",
"license": "MIT",

View File

@@ -42,9 +42,9 @@
},
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "babel src --out-dir dist",
"watch": "babel -w src --out-dir dist",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir dist/ --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir dist/ --ignore '**/__tests__','**/__mocks__'"
},
"engines": {
"node": ">=12.13.0"

View File

@@ -29,7 +29,9 @@
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir .",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir dist/ --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir dist/ --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.3.3"

View File

@@ -27,10 +27,10 @@
"medusa-test-utils": "^1.1.37"
},
"scripts": {
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir .",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.3.3"

View File

@@ -27,10 +27,10 @@
"medusa-test-utils": "^1.1.37"
},
"scripts": {
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir .",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.3.3"

View File

@@ -23,10 +23,10 @@
"medusa-interfaces": "^1.3.3"
},
"scripts": {
"test": "jest --passWithNoTests",
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir ."
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"prepare": "cross-env NODE_ENV=production yarn run build"
},
"peerDependencies": {
"medusa-interfaces": "1.3.3"

View File

@@ -25,10 +25,10 @@
"medusa-interfaces": "^1.3.3"
},
"scripts": {
"test": "jest",
"build": "babel src -d . --ignore **/__tests__",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.x"

View File

@@ -9,10 +9,10 @@
"directory": "packages/medusa-interfaces"
},
"scripts": {
"build": "tsc --build",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir dist/ --ignore **/__tests__",
"test": "jest"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir dist --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir dist --ignore '**/__tests__','**/__mocks__'"
},
"author": "Sebastian Rindom",
"license": "MIT",

View File

@@ -27,10 +27,10 @@
"medusa-test-utils": "^1.1.37"
},
"scripts": {
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir .",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.x"

View File

@@ -27,10 +27,10 @@
"medusa-interfaces": "^1.3.3"
},
"scripts": {
"build": "babel src -d . --ignore **/__tests__",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.3.3"

View File

@@ -29,9 +29,9 @@
},
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "babel src -d .",
"watch": "babel -w src --out-dir .",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.x"

View File

@@ -30,9 +30,9 @@
},
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "babel src -d . --ignore **/(__tests__|__mocks__)",
"watch": "babel -w src --out-dir . --ignore **/(__tests__|__mocks__)",
"test": "jest --passWithNoTests src/**"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.3.3"

View File

@@ -29,10 +29,10 @@
"medusa-test-utils": "^1.1.37"
},
"scripts": {
"build": "babel src -d . --ignore **/__tests__ --ignore **/__mocks__",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__ --ignore **/__mocks__",
"test": "jest"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.3.3"

View File

@@ -11,10 +11,10 @@
"author": "rolwin100",
"license": "MIT",
"scripts": {
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.3.3",

View File

@@ -30,10 +30,10 @@
"medusa-test-utils": "^1.1.37"
},
"scripts": {
"build": "babel src -d . --ignore **/__tests__",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.x"

View File

@@ -26,10 +26,10 @@
"medusa-interfaces": "^1.3.3"
},
"scripts": {
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.x"

View File

@@ -26,10 +26,10 @@
"medusa-interfaces": "^1.3.3"
},
"scripts": {
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.x"

View File

@@ -26,10 +26,10 @@
"medusa-interfaces": "^1.3.3"
},
"scripts": {
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.x"

View File

@@ -10,9 +10,9 @@
},
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "babel src --out-dir .",
"watch": "babel -w src --out-dir .",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"author": "Oliver Juhl",
"license": "MIT",

View File

@@ -26,10 +26,10 @@
"medusa-interfaces": "^1.3.3"
},
"scripts": {
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.x"

View File

@@ -11,10 +11,10 @@
"author": "Zakaria El Asri",
"license": "MIT",
"scripts": {
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.3.3"

View File

@@ -23,10 +23,10 @@
"ulid": "^2.3.0"
},
"scripts": {
"build": "babel src -d . --ignore **/__tests__ --extensions \".ts,.js\"",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"@medusajs/medusa": "^1.7.1",

View File

@@ -27,10 +27,10 @@
"medusa-interfaces": "^1.3.3"
},
"scripts": {
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.x"

View File

@@ -26,10 +26,10 @@
"medusa-interfaces": "^1.3.3"
},
"scripts": {
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.x"

View File

@@ -26,10 +26,10 @@
"medusa-interfaces": "^1.3.3"
},
"scripts": {
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.x"

View File

@@ -24,10 +24,10 @@
"medusa-interfaces": "^1.3.3"
},
"scripts": {
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.x"

View File

@@ -26,10 +26,10 @@
"medusa-interfaces": "^1.3.3"
},
"scripts": {
"build": "babel src -d .",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.x"

View File

@@ -12,9 +12,9 @@
"license": "MIT",
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "babel src -d . --ignore **/__tests__",
"watch": "babel -w src --out-dir . --ignore **/__tests__",
"test": "jest"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir . --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir . --ignore '**/__tests__','**/__mocks__'"
},
"peerDependencies": {
"medusa-interfaces": "1.3.3",

View File

@@ -25,11 +25,11 @@
"scripts": {
"start": "nodemon --watch plugins/ --watch src/ --exec babel-node src/app.js",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir dist/ --extensions \".ts,.js\"",
"build": "babel src -d dist --extensions \".ts,.js\"",
"watch": "babel -w src --out-dir dist/ --extensions \".ts,.js\" --ignore '**/__tests__','**/__mocks__'",
"build": "babel src -d dist --extensions \".ts,.js\" --ignore '**/__tests__','**/__mocks__'",
"serve": "node dist/app.js",
"postinstall": "node dist/postinstall.js || true",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src"
},
"dependencies": {
"axios": "^0.21.1",

View File

@@ -10,9 +10,9 @@
},
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "babel src --out-dir dist/",
"watch": "babel -w src --out-dir dist/",
"test": "jest --passWithNoTests"
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir dist/ --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir dist/ --ignore '**/__tests__','**/__mocks__'"
},
"author": "Sebastian Rindom",
"license": "MIT",