chore: use framework sub paths everywhere (#9253)

This commit is contained in:
Adrien de Peretti
2024-09-26 13:08:38 +02:00
committed by GitHub
parent 48bea267dc
commit a8e19faf8d
417 changed files with 870 additions and 934 deletions

View File

@@ -15,8 +15,8 @@
"access": "public"
},
"files": [
"dist",
"cli.js",
"dist",
"!dist/**/__tests__",
"!dist/**/__mocks__",
"!dist/**/__fixtures__"
@@ -26,7 +26,7 @@
},
"scripts": {
"test": "jest --passWithNoTests src",
"build": "rimraf dist && tsc",
"build": "rimraf dist && tsc --build",
"watch": "tsc --watch"
},
"author": "Sebastian Rindom",
@@ -36,18 +36,9 @@
"@swc/jest": "^0.2.36",
"@types/yargs": "^15.0.15",
"jest": "^29.7.0",
"rimraf": "^6.0.1",
"ts-node": "^10.9.2",
"rimraf": "^5.0.1",
"typescript": "^5.6.2"
},
"peerDependencies": {
"ts-node": "^10.9.2"
},
"peerDependenciesMeta": {
"ts-node": {
"optional": true
}
},
"dependencies": {
"@medusajs/utils": "1.11.9",
"chalk": "^4.0.0",

View File

@@ -9,6 +9,7 @@ import fs from "fs-extra"
import hostedGitInfo from "hosted-git-info"
import isValid from "is-valid-path"
import sysPath from "path"
import path from "path"
import prompts from "prompts"
import { Pool } from "pg"
import url from "url"
@@ -21,8 +22,10 @@ import reporter from "../reporter"
import { getPackageManager, setPackageManager } from "../util/package-manager"
import { PanicId } from "../reporter/panic-handler"
import { clearProject } from "../util/clear-project"
import path from "path"
import { getNodeVersion, MIN_SUPPORTED_NODE_VERSION } from "@medusajs/utils"
import {
getNodeVersion,
MIN_SUPPORTED_NODE_VERSION,
} from "@medusajs/utils"
const removeUndefined = (obj) => {
return Object.fromEntries(