Skip to content

Commit

Permalink
#1215@trivial: Fixes build.
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn86 committed Jan 18, 2024
1 parent d4c3329 commit e1271d0
Show file tree
Hide file tree
Showing 9 changed files with 703 additions and 3,090 deletions.
3,686 changes: 659 additions & 3,027 deletions package-lock.json

Large diffs are not rendered by default.

30 changes: 0 additions & 30 deletions packages/happy-dom/package-lock.json

This file was deleted.

1 change: 1 addition & 0 deletions packages/happy-dom/src/location/Location.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default class Location extends URL {
* Override set href.
*/
public get href(): string {
// @ts-ignore
return super.href;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/happy-dom/test/css/CSSParser.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import CSSStyleSheet from '../../src/css/CSSStyleSheet.js';
import CSSParser from '../../src/css/CSSParser.js';
import CSSParser from '../../src/css/utilities/CSSParser.js';
import CSSStyleRule from '../../src/css/rules/CSSStyleRule.js';
import CSSMediaRule from '../../src/css/rules/CSSMediaRule.js';
import CSSParserInput from './data/CSSParserInput.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable @typescript-eslint/no-var-requires*/

const Path = require('path');
const CPY = require('cpy');
const ChildProcess = require('child_process');

const LIBS = ['@lit/reactive-element', 'lit', 'lit-element', 'lit-html'];

Expand All @@ -18,11 +18,22 @@ function getLibPath(lib) {

async function main() {
await Promise.all(
LIBS.map((lib) =>
CPY(
[Path.join(getLibPath(lib), '*.d.ts')],
Path.resolve(Path.join('lib', 'node_modules', lib))
)
LIBS.map(
(lib) =>
new Promise((resolve, reject) => {
ChildProcess.exec(
`cp ${Path.join(getLibPath(lib), '*.d.ts')} ${Path.resolve(
Path.join('lib', 'node_modules', lib)
)}`,
(error, stdout, stderr) => {
if (error || stderr) {
reject(error || new Error(stderr));
return;
}
resolve(stdout);
}
);
})
)
);
}
Expand Down
51 changes: 25 additions & 26 deletions packages/jest-environment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"access": "public"
},
"scripts": {
"compile": "node ./bin/build-lit-ts-config && tsc --project tmp/tsconfig.lit-reactive-element.json && tsc --project tmp/tsconfig.lit-element.json && tsc --project tmp/tsconfig.lit-html.json && tsc --project tmp/tsconfig.lit.json && node ./bin/transform-lit-require.js && node ./bin/copy-tsdef-for-lit.js && node ./bin/copy-package-json-for-lit.js && tsc",
"compile": "node ./bin/build-lit-ts-config.cjs && tsc --project tmp/tsconfig.lit-reactive-element.json && tsc --project tmp/tsconfig.lit-element.json && tsc --project tmp/tsconfig.lit-html.json && tsc --project tmp/tsconfig.lit.json && node ./bin/transform-lit-require.cjs && node ./bin/copy-tsdef-for-lit.cjs && node ./bin/copy-package-json-for-lit.cjs && tsc",
"watch": "npm run compile && tsc -w --preserveWatchOutput",
"test": "jest",
"test:watch": "jest --watch",
Expand All @@ -50,42 +50,41 @@
"@jest/environment": "^29.4.0",
"@jest/fake-timers": "^29.4.0",
"@jest/types": "^29.4.0",
"happy-dom": "0.0.0",
"jest-mock": "^29.4.0",
"jest-util": "^29.4.0",
"happy-dom": "0.0.0"
"jest-util": "^29.4.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"@types/node": "^16.11.7",
"@types/react": "^18.2.0",
"@angular/common": "^10.0.7",
"@angular/compiler": "^10.0.7",
"@angular/core": "^10.0.7",
"@angular/platform-browser": "^10.0.7",
"@angular/platform-browser-dynamic": "^10.0.7",
"@lit/reactive-element": "^1.3.1",
"@radix-ui/react-select": "^1.2.2",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.5.1",
"@types/react-dom": "^18.2.0",
"@types/jest": "29.5.2",
"prettier": "^2.6.0",
"typescript": "^5.0.4",
"@types/node": "^16.11.7",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"express": "^4.18.2",
"glob": "^7.2.0",
"jest": "^29.4.0",
"ts-jest": "^29.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@radix-ui/react-select": "^1.2.2",
"vue": "^3.2.31",
"jquery": "^3.6.0",
"lit": "^2.2.1",
"@lit/reactive-element": "^1.3.1",
"lit-element": "^3.2.0",
"lit-html": "^2.2.1",
"@angular/core": "^10.0.7",
"@angular/platform-browser-dynamic": "^10.0.7",
"@angular/platform-browser": "^10.0.7",
"@angular/compiler": "^10.0.7",
"@angular/common": "^10.0.7",
"prettier": "^2.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rxjs": "^6.5.3",
"jquery": "^3.6.0",
"zone.js": "^0.10.3",
"glob": "^7.2.0",
"cpy": "^8.1.2",
"express": "^4.18.2"
"ts-jest": "^29.1.1",
"typescript": "^5.0.4",
"vue": "^3.2.31",
"zone.js": "^0.10.3"
},
"engines": {
"node": ">=16.0.0"
Expand Down

0 comments on commit e1271d0

Please sign in to comment.