Fixed npm installation and moved to types folder.

This commit is contained in:
SamTV12345 2024-01-24 09:57:13 +01:00
parent a57b13d319
commit d2cbe1b4b2
15 changed files with 11 additions and 9 deletions

View file

@ -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: |

View file

@ -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');

View file

@ -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');

View file

@ -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');

View file

@ -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');

View file

@ -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');