-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from blutorange/update-typedoc-0.27
Switch from CommonJS to ESM, required for support for TypeDoc 0.27.x
- Loading branch information
Showing
19 changed files
with
159 additions
and
859 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/unbound-method | ||
const { defineConfig } = require("cypress"); | ||
import { defineConfig } from "cypress"; | ||
|
||
module.exports = defineConfig({ | ||
const config = defineConfig({ | ||
e2e: { | ||
specPattern: "**/*.cy.ts", | ||
supportFile: false, | ||
video: false, | ||
screenshotOnRunFailure: false, | ||
}, | ||
}); | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,24 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
import fs from "node:fs/promises"; | ||
import path from "node:path"; | ||
|
||
console.log("=================================== SETTING UP THE TESTS ==========================================="); | ||
|
||
if (!fs.existsSync(path.join("..", "dist"))) { | ||
if ( | ||
!(await fs | ||
.access(path.join("..", "dist")) | ||
.then(() => true) | ||
.catch(() => false)) | ||
) { | ||
console.error("ERROR: Cannot find 'dist' folder. Did you forget to build the plugin with 'npm run build'?"); | ||
process.exit(1); | ||
} | ||
|
||
console.log("Copying current build of plugin to node_modules for testing..."); | ||
const nodeModulesSubDir = path.join("..", "node_modules", "typedoc-plugin-merge-modules"); | ||
|
||
fs.rm(nodeModulesSubDir, { recursive: true, force: true }, (rmErr) => { | ||
if (rmErr) { | ||
throw rmErr; | ||
} | ||
fs.mkdir(path.join(nodeModulesSubDir, "dist"), { recursive: true }, (mkDirErr) => { | ||
if (mkDirErr) { | ||
throw mkDirErr; | ||
} else { | ||
fs.copyFileSync(path.join("..", "package.json"), path.join(nodeModulesSubDir, "package.json")); | ||
fs.cpSync(path.join("..", "dist"), path.join(nodeModulesSubDir, "dist"), { recursive: true }); | ||
} | ||
}); | ||
}); | ||
await fs.rm(nodeModulesSubDir, { recursive: true, force: true }); | ||
await fs.mkdir(path.join(nodeModulesSubDir, "dist"), { recursive: true }); | ||
await fs.copyFile(path.join("..", "package.json"), path.join(nodeModulesSubDir, "package.json")); | ||
await fs.cp(path.join("..", "dist"), path.join(nodeModulesSubDir, "dist"), { recursive: true }); | ||
|
||
console.log("DONE\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters