publish @mcflyjs/config

This commit is contained in:
Ayo 2023-10-21 07:56:59 +02:00
parent 2385aafb62
commit 8ae570a44f
5 changed files with 42 additions and 3 deletions

View file

@ -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({ export default defineNitroConfig({
extends: McFly, extends: McFly,
}); });

13
package-lock.json generated
View file

@ -4,6 +4,9 @@
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"workspaces": [
"packages/config"
],
"dependencies": { "dependencies": {
"esprima": "^4.0.1", "esprima": "^4.0.1",
"nitropack": "^2.7.0", "nitropack": "^2.7.0",
@ -432,6 +435,10 @@
"node-pre-gyp": "bin/node-pre-gyp" "node-pre-gyp": "bin/node-pre-gyp"
} }
}, },
"node_modules/@mcflyjs/config": {
"resolved": "packages/config",
"link": true
},
"node_modules/@netlify/functions": { "node_modules/@netlify/functions": {
"version": "2.3.0", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-2.3.0.tgz", "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-2.3.0.tgz",
@ -3935,6 +3942,12 @@
"engines": { "engines": {
"node": ">= 12.0.0" "node": ">= 12.0.0"
} }
},
"packages/config": {
"name": "@mcflyjs/config",
"version": "0.0.1",
"license": "MIT",
"devDependencies": {}
} }
} }
} }

View file

@ -9,8 +9,12 @@
"build:preview": "npm run build && npm run preview" "build:preview": "npm run build && npm run preview"
}, },
"dependencies": { "dependencies": {
"@mcflyjs/config": "*",
"esprima": "^4.0.1", "esprima": "^4.0.1",
"nitropack": "^2.7.0", "nitropack": "^2.7.0",
"ultrahtml": "^1.5.2" "ultrahtml": "^1.5.2"
} },
"workspaces": [
"packages/config"
]
} }

View file

@ -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"
}