@gasket/plugin-docusaurus
Advanced tools
Comparing version 7.0.0-next.65 to 7.0.0-next.66
@@ -13,2 +13,12 @@ const defaultsDeep = require('lodash.defaultsdeep'); | ||
/** | ||
* Drops a package.json file in the docs root so that Docusaurus | ||
* does not complain about type: module if in the root package.json. | ||
* @param {string} docsRoot - The docs root directory | ||
*/ | ||
async function createPackageFile(docsRoot) { | ||
const target = path.join(docsRoot, 'package.json'); | ||
await writeFile(target, JSON.stringify({}), 'utf-8'); | ||
} | ||
/** | ||
* Check if devDependencies are installed | ||
@@ -50,2 +60,3 @@ */ | ||
await createPackageFile(path.join(config.root, docusaurusConfig.rootDir)); | ||
await writeFile(configFilePath, defaultDocusaurusConfig, 'utf-8'); | ||
@@ -52,0 +63,0 @@ } |
{ | ||
"name": "@gasket/plugin-docusaurus", | ||
"version": "7.0.0-next.65", | ||
"version": "7.0.0-next.66", | ||
"description": "Gasket plugin for docusaurus", | ||
@@ -49,3 +49,3 @@ "main": "lib/index.js", | ||
"@docusaurus/preset-classic": "^3.4.0", | ||
"@gasket/core": "7.0.0-next.65", | ||
"@gasket/core": "7.0.0-next.66", | ||
"ajv": "^8.17.1", | ||
@@ -81,3 +81,3 @@ "cross-env": "^7.0.3", | ||
}, | ||
"gitHead": "93fb05fe933682704607eed6a2dfc870cf35c2d1" | ||
"gitHead": "73d57d790d06eaf7d75c74bd89a9505f49be73ea" | ||
} |
13095
273