diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 58fd1e179..711b29cc9 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -116,6 +116,8 @@ jobs: - name: Install Cypress run: cd etherpad && cd src && npm install cypress --legacy-peer-deps + - name: Install npm@6 + run: npm install npm@6 -g - name: Run Etherpad run: | diff --git a/src/node/security/SecretRotator.ts b/src/node/security/SecretRotator.ts index 780810e91..b694ffb42 100644 --- a/src/node/security/SecretRotator.ts +++ b/src/node/security/SecretRotator.ts @@ -1,7 +1,7 @@ 'use strict'; -import {DeriveModel} from "../models/DeriveModel"; -import {LegacyParams} from "../models/LegacyParams"; +import {DeriveModel} from "../types/DeriveModel"; +import {LegacyParams} from "../types/LegacyParams"; const {Buffer} = require('buffer'); const crypto = require('./crypto'); diff --git a/src/node/server.ts b/src/node/server.ts index ef0cf531b..af5608202 100755 --- a/src/node/server.ts +++ b/src/node/server.ts @@ -24,8 +24,8 @@ * limitations under the License. */ -import {PluginType} from "./models/Plugin"; -import {ErrorCaused} from "./models/ErrorCaused"; +import {PluginType} from "./types/Plugin"; +import {ErrorCaused} from "./types/ErrorCaused"; import {PromiseHooks} from "node:v8"; const log4js = require('log4js'); diff --git a/src/node/models/AsyncQueueTask.ts b/src/node/types/AsyncQueueTask.ts similarity index 100% rename from src/node/models/AsyncQueueTask.ts rename to src/node/types/AsyncQueueTask.ts diff --git a/src/node/models/DeriveModel.ts b/src/node/types/DeriveModel.ts similarity index 100% rename from src/node/models/DeriveModel.ts rename to src/node/types/DeriveModel.ts diff --git a/src/node/models/ErrorCaused.ts b/src/node/types/ErrorCaused.ts similarity index 100% rename from src/node/models/ErrorCaused.ts rename to src/node/types/ErrorCaused.ts diff --git a/src/node/models/LegacyParams.ts b/src/node/types/LegacyParams.ts similarity index 100% rename from src/node/models/LegacyParams.ts rename to src/node/types/LegacyParams.ts diff --git a/src/node/models/MapType.ts b/src/node/types/MapType.ts similarity index 100% rename from src/node/models/MapType.ts rename to src/node/types/MapType.ts diff --git a/src/node/models/PadType.ts b/src/node/types/PadType.ts similarity index 100% rename from src/node/models/PadType.ts rename to src/node/types/PadType.ts diff --git a/src/node/models/Plugin.ts b/src/node/types/Plugin.ts similarity index 100% rename from src/node/models/Plugin.ts rename to src/node/types/Plugin.ts diff --git a/src/node/models/PromiseWithStd.ts b/src/node/types/PromiseWithStd.ts similarity index 100% rename from src/node/models/PromiseWithStd.ts rename to src/node/types/PromiseWithStd.ts diff --git a/src/node/models/RunCMDOptions.ts b/src/node/types/RunCMDOptions.ts similarity index 100% rename from src/node/models/RunCMDOptions.ts rename to src/node/types/RunCMDOptions.ts diff --git a/src/node/utils/Abiword.ts b/src/node/utils/Abiword.ts index 74034b23b..c0937fcd9 100644 --- a/src/node/utils/Abiword.ts +++ b/src/node/utils/Abiword.ts @@ -20,7 +20,7 @@ */ import {ChildProcess} from "node:child_process"; -import {AsyncQueueTask} from "../models/AsyncQueueTask"; +import {AsyncQueueTask} from "../types/AsyncQueueTask"; const spawn = require('child_process').spawn; const async = require('async'); diff --git a/src/node/utils/ExportTxt.ts b/src/node/utils/ExportTxt.ts index 0f793047d..95e8b0456 100644 --- a/src/node/utils/ExportTxt.ts +++ b/src/node/utils/ExportTxt.ts @@ -19,8 +19,8 @@ * limitations under the License. */ -import {AText, PadType} from "../models/PadType"; -import {MapType} from "../models/MapType"; +import {AText, PadType} from "../types/PadType"; +import {MapType} from "../types/MapType"; const Changeset = require('../../static/js/Changeset'); const attributes = require('../../static/js/attributes'); diff --git a/src/node/utils/run_cmd.ts b/src/node/utils/run_cmd.ts index 083d43c5c..463b0f076 100644 --- a/src/node/utils/run_cmd.ts +++ b/src/node/utils/run_cmd.ts @@ -1,8 +1,8 @@ 'use strict'; -import {ErrorExtended, RunCMDOptions, RunCMDPromise} from "../models/RunCMDOptions"; +import {ErrorExtended, RunCMDOptions, RunCMDPromise} from "../types/RunCMDOptions"; import {ChildProcess} from "node:child_process"; -import {PromiseWithStd} from "../models/PromiseWithStd"; +import {PromiseWithStd} from "../types/PromiseWithStd"; import {Readable} from "node:stream"; const spawn = require('cross-spawn');