Skip to content

Commit

Permalink
Chore(deps-dev): bump typescript from 5.5.4 to 5.7.2 (#244)
Browse files Browse the repository at this point in the history
* Chore(deps-dev): bump typescript from 5.5.4 to 5.7.2

Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.5.4 to 5.7.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](microsoft/TypeScript@v5.5.4...v5.7.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Change the way ts utilities are run for latest typescript in Node 20+

* Better solution to running scripts as ESM whilst not applying that to the whole project

* lint

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pete Edwards <[email protected]>
  • Loading branch information
dependabot[bot] and edwardsph authored Jan 9, 2025
1 parent d7e17ca commit 95fee98
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 19 deletions.
10 changes: 2 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ test-results/

# production
/build
/dist

# misc
.DS_Store
Expand All @@ -29,6 +30,7 @@ yarn-error.log*
.pnpm-debug.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
Expand All @@ -41,13 +43,5 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts

npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Sentry
.sentryclirc

# Developers' Environment Variables
.env
.env.local
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
/.next
/e2e/test-app/.next
src/cache/purposesParsed.ts
/dist
10 changes: 5 additions & 5 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"start": "next start",
"test": "TZ=UTC jest --runInBand",
"test:e2e": "playwright test",
"update-clientId": "npm ci && npx ts-node --skip-project scripts/updateClientId.ts",
"update-clientId": "npm ci && tsc --project tsconfig.scripts.json && node dist/scripts/updateClientId.js",
"bump-version": "changeset add",
"version": "changeset version",
"release": "changeset publish",
"preparePurposes": "npx ts-node --skip-project scripts/preparePurposes.ts"
"preparePurposes": "tsc --project tsconfig.scripts.json && node dist/scripts/preparePurposes.js ./src/cache"
},
"dependencies": {
"@changesets/changelog-github": "^0.5.0",
Expand Down Expand Up @@ -58,7 +58,7 @@
"@inrupt/eslint-config-react": "^3.2.4",
"@inrupt/internal-playwright-helpers": "^3.2.4",
"@inrupt/internal-playwright-testids": "^3.2.2",
"@inrupt/internal-test-env": "^3.2.2",
"@inrupt/internal-test-env": "^3.2.4",
"@inrupt/jest-jsdom-polyfills": "^3.2.4",
"@next/eslint-plugin-next": "^14.2.15",
"@playwright/test": "~1.47.2",
Expand All @@ -84,7 +84,7 @@
"jest-environment-jsdom": "^29.7.0",
"ts-jest": "^29.2.4",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
"typescript": "^5.7.2"
},
"browserslist": {
"production": [
Expand Down
5 changes: 3 additions & 2 deletions scripts/preparePurposes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ async function main() {
await addToCache(ont, cache);
}

const cachePath = path.join(__dirname, "..", "src", "cache");
const cachePath = process.argv[2];
console.log("Path for cached purposes file: ", cachePath);

if (!fs.existsSync(cachePath)) {
fs.mkdirSync(cachePath);
Expand All @@ -52,6 +53,6 @@ async function main() {
}

main().catch((e) => {
console.log("Error occured preparing purposes", e);
console.log("Error occurred preparing purposes", e);
process.exit(1);
});
16 changes: 16 additions & 0 deletions tsconfig.scripts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"target": "es6",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
"module": "nodenext",
"moduleResolution": "nodenext",
"outDir": "./dist"
},
"include": ["scripts/*.ts"],
"exclude": ["node_modules"]
}

0 comments on commit 95fee98

Please sign in to comment.