chore: include rimraf as part of the build for most of the packages (#4615)

* chore: include rimraf as part of the build for most of the packages

* cleanup

* revert medusa interface

* missing script update
This commit is contained in:
Adrien de Peretti
2023-07-31 09:23:27 +02:00
committed by GitHub
parent c8ef0c6d25
commit 58d4c230e2
23 changed files with 64 additions and 22 deletions

View File

@@ -20,13 +20,14 @@
"@medusajs/types": "^1.8.8",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"ts-jest": "^25.5.1",
"typescript": "^4.4.4"
},
"scripts": {
"watch": "tsc --build --watch",
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "tsc --build",
"build": "rimraf dist && tsc --build",
"test": "jest --passWithNoTests"
},
"dependencies": {

View File

@@ -20,13 +20,14 @@
"@medusajs/types": "^1.8.8",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"ts-jest": "^25.5.1",
"typescript": "^4.4.4"
},
"scripts": {
"watch": "tsc --build --watch",
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "tsc --build",
"build": "rimraf dist && tsc --build",
"test": "jest --passWithNoTests"
},
"dependencies": {

View File

@@ -20,13 +20,14 @@
"@medusajs/types": "^1.8.10",
"cross-env": "^5.2.1",
"jest": "^25.5.2",
"rimraf": "^5.0.1",
"ts-jest": "^25.5.1",
"typescript": "^4.4.4"
},
"scripts": {
"watch": "tsc --build --watch",
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "tsc --build",
"build": "rimraf dist && tsc --build",
"test": "jest --passWithNoTests"
},
"dependencies": {

View File

@@ -21,13 +21,14 @@
"cross-env": "^5.2.1",
"jest": "^25.5.2",
"medusa-test-utils": "^1.1.40",
"rimraf": "^5.0.1",
"ts-jest": "^25.5.1",
"typescript": "^4.4.4"
},
"scripts": {
"watch": "tsc --build --watch",
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "tsc --build",
"build": "rimraf dist && tsc --build",
"test": "jest --passWithNoTests"
},
"dependencies": {

View File

@@ -20,6 +20,7 @@
"@medusajs/types": "^1.8.11",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"ts-jest": "^25.5.1",
"typescript": "^4.4.4"
},
@@ -32,7 +33,7 @@
"scripts": {
"watch": "tsc --build --watch",
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "tsc --build",
"build": "rimraf dist && tsc --build",
"test": "jest --passWithNoTests"
}
}

View File

@@ -20,7 +20,7 @@
],
"scripts": {
"test": "jest --passWithNoTests src",
"build": "tsc",
"build": "rimraf dist && tsc",
"watch": "tsc --watch",
"prepare": "cross-env NODE_ENV=production yarn run build"
},
@@ -30,6 +30,7 @@
"@types/yargs": "^15.0.15",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"ts-jest": "^25.5.1",
"typescript": "^4.9.5"
},

View File

@@ -10,7 +10,7 @@
},
"scripts": {
"test": "jest",
"build": "tsc --build",
"build": "rimraf dist && tsc --build",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "tsc --watch"
},
@@ -22,6 +22,7 @@
"devDependencies": {
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"ts-jest": "^25.5.1",
"typescript": "^4.4.4"
},

View File

@@ -17,12 +17,13 @@
"@medusajs/medusa": "^1.12.0",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"typescript": "^4.9.5"
},
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"test": "jest --passWithNoTests src",
"build": "tsc",
"build": "rimraf dist && tsc",
"watch": "tsc --watch"
},
"peerDependencies": {

View File

@@ -17,12 +17,13 @@
"@medusajs/medusa": "^1.12.3",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"typescript": "^4.9.5"
},
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"test": "jest --passWithNoTests src",
"build": "tsc",
"build": "rimraf dist && tsc",
"watch": "tsc --watch"
},
"peerDependencies": {

View File

@@ -18,12 +18,13 @@
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"medusa-test-utils": "^1.1.40",
"rimraf": "^5.0.1",
"typescript": "^4.9.5"
},
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"test": "jest --passWithNoTests src",
"build": "tsc",
"build": "rimraf dist && tsc",
"watch": "tsc --watch"
},
"peerDependencies": {

View File

@@ -10,4 +10,4 @@
"plugins": ["@babel/plugin-transform-runtime"]
}
}
}
}

View File

@@ -11,7 +11,7 @@
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"test": "jest --passWithNoTests src",
"build": "babel src --out-dir dist --ignore '**/__tests__','**/__mocks__'",
"build": "rimraf dist && babel src --out-dir dist --ignore '**/__tests__','**/__mocks__'",
"watch": "babel -w src --out-dir dist --ignore '**/__tests__','**/__mocks__'"
},
"files": [
@@ -33,6 +33,7 @@
"jest": "^25.5.4",
"medusa-core-utils": "^1.2.0",
"medusa-test-utils": "^1.1.40",
"rimraf": "^5.0.1",
"typescript": "^4.4.4"
},
"gitHead": "cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e"

View File

@@ -16,7 +16,7 @@
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"test": "jest --passWithNoTests src",
"build": "tsc",
"build": "rimraf dist && tsc",
"watch": "tsc --watch"
},
"devDependencies": {
@@ -25,6 +25,7 @@
"@types/stripe": "^8.0.417",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"typescript": "^4.4.4"
},
"peerDependencies": {

View File

@@ -16,7 +16,7 @@
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"test": "jest --passWithNoTests src",
"build": "tsc",
"build": "rimraf dist && tsc",
"watch": "tsc --watch"
},
"devDependencies": {
@@ -25,6 +25,7 @@
"awilix": "^8.0.1",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"typescript": "^4.9.5"
},
"peerDependencies": {

View File

@@ -15,7 +15,7 @@
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"test": "jest --passWithNoTests src",
"build": "tsc",
"build": "rimraf dist && tsc",
"watch": "tsc --watch"
},
"dependencies": {
@@ -28,6 +28,7 @@
"client-sessions": "^0.8.0",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"typescript": "^4.4.4"
},
"gitHead": "cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e",

View File

@@ -16,12 +16,13 @@
"client-sessions": "^0.8.0",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"typescript": "^4.4.4"
},
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"test": "jest --passWithNoTests src",
"build": "tsc",
"build": "rimraf dist && tsc",
"watch": "tsc --watch"
},
"peerDependencies": {

View File

@@ -15,7 +15,7 @@
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"test": "jest --passWithNoTests src",
"build": "tsc",
"build": "rimraf dist && tsc",
"watch": "tsc --watch"
},
"dependencies": {
@@ -33,6 +33,7 @@
"@medusajs/types": "^1.10.0",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"typescript": "^4.9.5"
},
"gitHead": "cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e",

View File

@@ -29,6 +29,7 @@
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"medusa-interfaces": "^1.3.7",
"rimraf": "^5.0.1",
"supertest": "^4.0.2",
"ts-jest": "^25.5.1",
"typeorm": "^0.3.16",
@@ -37,7 +38,7 @@
"scripts": {
"watch": "tsc --build --watch",
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "tsc --build",
"build": "rimraf dist && tsc --build",
"serve": "node dist/app.js",
"test": "jest"
},

View File

@@ -19,6 +19,7 @@
"devDependencies": {
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"ts-jest": "^25.5.1",
"typescript": "^4.4.4"
},
@@ -31,7 +32,7 @@
},
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "tsc --build",
"build": "rimraf dist && tsc --build",
"test": "jest",
"watch": "tsc --build --watch"
}

View File

@@ -20,6 +20,7 @@
"@medusajs/types": "^1.9.0",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"ts-jest": "^25.5.1",
"typescript": "^4.4.4"
},
@@ -29,7 +30,7 @@
},
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "tsc --build",
"build": "rimraf dist && tsc --build",
"watch": "tsc --build --watch",
"test": "jest"
}

View File

@@ -20,6 +20,7 @@
"@medusajs/types": "^1.8.8",
"cross-env": "^5.2.1",
"jest": "^25.5.4",
"rimraf": "^5.0.1",
"ts-jest": "^25.5.1",
"typescript": "^4.4.4"
},
@@ -32,7 +33,7 @@
"scripts": {
"watch": "tsc --build --watch",
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "tsc --build",
"build": "rimraf dist && tsc --build",
"test": "jest --passWithNoTests"
}
}

View File

@@ -21,13 +21,14 @@
"awilix": "^8.0.0",
"cross-env": "^5.2.1",
"ioredis": "^5.2.5",
"rimraf": "^5.0.1",
"typeorm": "^0.3.16",
"typescript": "^4.4.4",
"winston": "^3.8.2"
},
"scripts": {
"prepare": "cross-env NODE_ENV=production yarn run build",
"build": "tsc --build",
"build": "rimraf dist && tsc --build",
"watch": "tsc --build --watch",
"test": "exit 0"
}

View File

@@ -6152,6 +6152,7 @@ __metadata:
"@medusajs/types": ^1.8.8
cross-env: ^5.2.1
jest: ^25.5.4
rimraf: ^5.0.1
ts-jest: ^25.5.1
typescript: ^4.4.4
languageName: unknown
@@ -6167,6 +6168,7 @@ __metadata:
cross-env: ^5.2.1
ioredis: ^5.3.1
jest: ^25.5.4
rimraf: ^5.0.1
ts-jest: ^25.5.1
typescript: ^4.4.4
languageName: unknown
@@ -6195,6 +6197,7 @@ __metadata:
"@medusajs/utils": ^1.9.2
cross-env: ^5.2.1
jest: ^25.5.2
rimraf: ^5.0.1
ts-jest: ^25.5.1
typescript: ^4.4.4
ulid: ^2.3.0
@@ -6214,6 +6217,7 @@ __metadata:
ioredis: ^5.2.5
jest: ^25.5.2
medusa-test-utils: ^1.1.40
rimraf: ^5.0.1
ts-jest: ^25.5.1
typescript: ^4.4.4
languageName: unknown
@@ -6226,6 +6230,7 @@ __metadata:
"@medusajs/medusa": ^1.12.0
cross-env: ^5.2.1
jest: ^25.5.4
rimraf: ^5.0.1
typescript: ^4.9.5
peerDependencies:
medusa-interfaces: ^1.3.7
@@ -6242,6 +6247,7 @@ __metadata:
awilix: ^8.0.0
cross-env: ^5.2.1
jest: ^25.5.4
rimraf: ^5.0.1
ts-jest: ^25.5.1
typeorm: ^0.3.16
typescript: ^4.4.4
@@ -6277,6 +6283,7 @@ __metadata:
prompts: ^2.4.2
regenerator-runtime: ^0.13.11
resolve-cwd: ^3.0.0
rimraf: ^5.0.1
semver: ^7.3.8
stack-trace: ^0.0.10
ts-jest: ^25.5.1
@@ -6395,6 +6402,7 @@ __metadata:
reflect-metadata: ^0.1.13
regenerator-runtime: ^0.13.11
request-ip: ^2.1.3
rimraf: ^5.0.1
scrypt-kdf: ^2.0.1
supertest: ^4.0.2
ts-jest: ^25.5.1
@@ -6422,6 +6430,7 @@ __metadata:
cross-env: ^5.2.1
jest: ^25.5.4
resolve-cwd: ^3.0.0
rimraf: ^5.0.1
ts-jest: ^25.5.1
typescript: ^4.4.4
languageName: unknown
@@ -6482,6 +6491,7 @@ __metadata:
cross-env: ^5.2.1
graphql: ^16.6.0
jest: ^25.5.4
rimraf: ^5.0.1
ts-jest: ^25.5.1
typescript: ^4.4.4
languageName: unknown
@@ -6528,6 +6538,7 @@ __metadata:
awilix: ^8.0.0
cross-env: ^5.2.1
jest: ^25.5.4
rimraf: ^5.0.1
ts-jest: ^25.5.1
typeorm: ^0.3.16
typescript: ^4.4.4
@@ -6541,6 +6552,7 @@ __metadata:
awilix: ^8.0.0
cross-env: ^5.2.1
ioredis: ^5.2.5
rimraf: ^5.0.1
typeorm: ^0.3.16
typescript: ^4.4.4
winston: ^3.8.2
@@ -30399,6 +30411,7 @@ __metadata:
dependencies:
cross-env: ^5.2.1
jest: ^25.5.4
rimraf: ^5.0.1
ts-jest: ^25.5.1
typescript: ^4.4.4
languageName: unknown
@@ -30442,6 +30455,7 @@ __metadata:
jest: ^25.5.4
medusa-core-utils: ^1.2.0
medusa-test-utils: ^1.1.40
rimraf: ^5.0.1
typescript: ^4.9.5
peerDependencies:
"@medusajs/medusa": ^1.12.0
@@ -30460,6 +30474,7 @@ __metadata:
jest: ^25.5.4
medusa-core-utils: ^1.2.0
medusa-test-utils: ^1.1.40
rimraf: ^5.0.1
typescript: ^4.9.5
peerDependencies:
"@medusajs/medusa": ^1.12.0
@@ -30564,6 +30579,7 @@ __metadata:
jest: ^25.5.4
medusa-core-utils: ^1.2.0
medusa-test-utils: ^1.1.40
rimraf: ^5.0.1
typescript: ^4.4.4
languageName: unknown
linkType: soft
@@ -30667,6 +30683,7 @@ __metadata:
express: ^4.17.1
jest: ^25.5.4
medusa-core-utils: ^1.2.0
rimraf: ^5.0.1
typescript: ^4.4.4
peerDependencies:
"@medusajs/medusa": ^1.12.0
@@ -30685,6 +30702,7 @@ __metadata:
express: ^4.17.1
jest: ^25.5.4
medusa-core-utils: ^1.2.0
rimraf: ^5.0.1
stripe: ^11.10.0
typescript: ^4.9.5
peerDependencies:
@@ -30703,6 +30721,7 @@ __metadata:
client-sessions: ^0.8.0
cross-env: ^5.2.1
jest: ^25.5.4
rimraf: ^5.0.1
typescript: ^4.4.4
languageName: unknown
linkType: soft
@@ -30862,6 +30881,7 @@ __metadata:
mailchimp-api-v3: ^1.14.0
medusa-core-utils: ^1.2.0
medusa-test-utils: ^1.1.40
rimraf: ^5.0.1
typescript: ^4.4.4
peerDependencies:
"@medusajs/medusa": ^1.12.0
@@ -30881,6 +30901,7 @@ __metadata:
jest: ^25.5.4
lodash: ^4.17.21
meilisearch: ^0.32.3
rimraf: ^5.0.1
typescript: ^4.9.5
peerDependencies:
"@medusajs/medusa": ^1.12.0