Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump typescript from 5.2.2 to 5.3.2 #3427

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"sinon": "=17.0.1",
"terser-webpack-plugin": "=5.3.9",
"ts-node": "=10.9.1",
"typescript": "=5.2.2",
"typescript": "=5.3.2",
"webpack": "=5.89.0",
"webpack-cli": "=5.1.4"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/apidom-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"lint:fix": "eslint ./ --fix",
"clean": "rimraf ./es ./cjs ./dist ./types",
"typescript:check-types": "tsc -p check-types.tsconfig.json --noEmit",
"typescript:declaration": "tsc -p declaration.tsconfig.json && rollup -c config/rollup/types.dist.js && copyfiles -u 2 ../@types/minim.d.ts ./types && node ../../scripts/file-prepend-bof.js './types/dist.d.ts' '/// <reference path=\"./minim.d.ts\" />'",
"typescript:declaration": "tsc -p declaration.tsconfig.json && rollup -c config/rollup/types.dist.js && copyfiles -u 2 ../@types/minim.d.ts ./types && node ../../scripts/file-replace-bof.js './types/dist.d.ts' '/// <reference path=\"./minim.d.ts\" />'",
"test": "cross-env NODE_ENV=test BABEL_ENV=cjs mocha",
"test:update-snapshots": "cross-env UPDATE_SNAPSHOT=1 BABEL_ENV=cjs mocha",
"prepack": "copyfiles -u 3 ../../LICENSES/* LICENSES && copyfiles -u 2 ../../NOTICE .",
Expand Down
15 changes: 0 additions & 15 deletions scripts/file-prepend-bof.js

This file was deleted.

15 changes: 15 additions & 0 deletions scripts/file-replace-bof.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import fs from 'node:fs';
import path from 'node:path';
import process from 'node:process';

const cwd = process.cwd();
const [, , fileName, bofContent] = process.argv;
const filePath = path.join(cwd, fileName);
const fileContent = fs.readFileSync(filePath).toString();
const lines = fileContent.split('\n');

lines.shift();
lines.unshift(bofContent);

const newFileContent = lines.join('\n');
fs.writeFileSync(fileName, newFileContent);