diff --git a/package.json b/package.json index 1c5d712c..c333c5d9 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "compile": "virmator compile", "docs": "npm run exec --workspace @augment-vir/scripts src/scripts/run-typedoc.script.ts", "format": "virmator format", - "postinstall": "npm run exec --workspace @augment-vir/scripts src/scripts/fix-mocha-node-module.script.ts", + "postinstall": "npm run compile", "lint": "virmator lint fix", "publish": "virmator publish \"npm run test:all\"", "test": "mono-vir for-each npm run test", diff --git a/packages/scripts/src/scripts/fix-mocha-node-module.script.ts b/packages/scripts/src/scripts/fix-mocha-node-module.script.ts deleted file mode 100644 index 1df7a239..00000000 --- a/packages/scripts/src/scripts/fix-mocha-node-module.script.ts +++ /dev/null @@ -1,21 +0,0 @@ -import {existsSync} from 'node:fs'; -import {mkdir, rename} from 'node:fs/promises'; -import {dirname, join} from 'node:path'; -import {monoRepoNodeModulesDirPath, packagePaths} from '../file-paths.js'; - -async function fixMochaNodeModule() { - const monoRepoMochaDirPath = join(monoRepoNodeModulesDirPath, '@types', 'mocha'); - if (!existsSync(monoRepoMochaDirPath)) { - console.info('node_modules/@types/mocha already installed in the correct location.'); - return; - } - - console.info('moving node_modules/@types/mocha already into the correct location.'); - const newMochaDirPath = join(packagePaths.test, 'node_modules', '@types', 'mocha'); - - await mkdir(dirname(newMochaDirPath), {recursive: true}); - - await rename(monoRepoMochaDirPath, newMochaDirPath); -} - -void fixMochaNodeModule();