diff --git a/nitro.config.ts b/nitro.config.ts index 3f1e86b..5663960 100644 --- a/nitro.config.ts +++ b/nitro.config.ts @@ -1,6 +1,8 @@ -import McFly from "./packages/mcfly.config"; +import McFly from "@mcflyjs/config"; -//https://nitro.unjs.io/config +/** + * @see https://nitro.unjs.io/config + */ export default defineNitroConfig({ extends: McFly, }); diff --git a/package-lock.json b/package-lock.json index 4045207..b7c778d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,9 @@ "requires": true, "packages": { "": { + "workspaces": [ + "packages/config" + ], "dependencies": { "esprima": "^4.0.1", "nitropack": "^2.7.0", @@ -432,6 +435,10 @@ "node-pre-gyp": "bin/node-pre-gyp" } }, + "node_modules/@mcflyjs/config": { + "resolved": "packages/config", + "link": true + }, "node_modules/@netlify/functions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-2.3.0.tgz", @@ -3935,6 +3942,12 @@ "engines": { "node": ">= 12.0.0" } + }, + "packages/config": { + "name": "@mcflyjs/config", + "version": "0.0.1", + "license": "MIT", + "devDependencies": {} } } } diff --git a/package.json b/package.json index ce44107..95340f8 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,12 @@ "build:preview": "npm run build && npm run preview" }, "dependencies": { + "@mcflyjs/config": "*", "esprima": "^4.0.1", "nitropack": "^2.7.0", "ultrahtml": "^1.5.2" - } + }, + "workspaces": [ + "packages/config" + ] } diff --git a/packages/mcfly.config.ts b/packages/config/index.ts similarity index 100% rename from packages/mcfly.config.ts rename to packages/config/index.ts diff --git a/packages/config/package.json b/packages/config/package.json new file mode 100644 index 0000000..4c15769 --- /dev/null +++ b/packages/config/package.json @@ -0,0 +1,20 @@ +{ + "name": "@mcflyjs/config", + "version": "0.0.1", + "description": "Nitro configuration for McFly apps", + "main": "index.ts", + "devDependencies": {}, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/ayoayco/McFly.git" + }, + "author": "Ayo Ayco", + "license": "MIT", + "bugs": { + "url": "https://github.com/ayoayco/McFly/issues" + }, + "homepage": "https://github.com/ayoayco/McFly#readme" +}