Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
- run: corepack enable
- run: yarn config set enableImmutableInstalls false
- run: yarn
Expand Down
15 changes: 15 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
compressionLevel: mixed

nodeLinker: node-modules

# 48h supply-chain age gate: refuse to resolve npm versions published less than
# 2880 minutes ago (yarn measures npmMinimalAgeGate in minutes; default is 1440).
# `yarn upgrade` (ncu --cooldown 48h) applies the same 48h window at selection time.
npmMinimalAgeGate: 2880

# exempt only the in-org symbols package from the age gate: core pins it to an
# exact version it publishes in lockstep, so the 48h window adds no supply-chain
# protection here. scoped to symbols alone — not a broad @digital-alchemy/* glob.
npmPreapprovedPackages:
- '@digital-alchemy/hass'
- '@digital-alchemy/core'
- '@digital-alchemy/symbols'

npmRegistryServer: "https://registry.npmjs.org/"
5 changes: 2 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,20 @@ export default [
{
plugins: {
import: fixupPluginRules(importPlugin),
jsonc,
"no-unsanitized": noUnsanitized,
"simple-import-sort": simpleImportSort,
"sort-keys-fix": sortKeysFix,
"sort-keys-fix": fixupPluginRules(sortKeysFix),
unicorn,
prettier,
},
languageOptions: {
globals: { ...globals.node },
},
},
...jsonc.configs["flat/recommended-with-jsonc"],
...compat
.extends(
"plugin:@typescript-eslint/recommended",
"plugin:jsonc/recommended-with-jsonc",
"plugin:prettier/recommended",
"plugin:@cspell/recommended",
)
Expand Down
49 changes: 24 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"name": "@digital-alchemy/type-writer",
"repository": "https://github.com/Digital-Alchemy-TS/type-writer",
"homepage": "https://docs.digital-alchemy.app/Type-Writer",
"version": "26.2.13",
"version": "26.8.18",
"scripts": {
"build": "rm -rf dist/; tsc",
"lint": "eslint src",
"test": "./scripts/test.sh",
"prepublishOnly": "yarn build",
"upgrade": "yarn up '@digital-alchemy/*'",
"upgrade": "ncu --upgrade --cooldown 48h && truncate -s 0 yarn.lock && yarn install",
"dev": "npx tsx src/main.mts --TARGET_DIR=./test-out"
},
"author": {
Expand All @@ -30,38 +30,37 @@
},
"license": "MIT",
"dependencies": {
"js-yaml": "^4.1.1",
"prettier": "^3.8.1",
"type-fest": "^5.4.4",
"typescript": "^5.9.3"
"js-yaml": "^5.3.0",
"prettier": "^3.9.6",
"type-fest": "^5.8.0",
"typescript": "^6.0.3"
},
"peerDependencies": {
"@digital-alchemy/core": "*",
"@digital-alchemy/hass": "*"
},
"devDependencies": {
"@cspell/eslint-plugin": "^9.6.4",
"@digital-alchemy/core": "^26.1.9",
"@digital-alchemy/hass": "^25.11.27",
"@eslint/compat": "^2.0.2",
"@eslint/eslintrc": "^3.3.3",
"@cspell/eslint-plugin": "^10.0.1",
"@digital-alchemy/core": "^26.6.21",
"@digital-alchemy/hass": "^26.8.18",
"@eslint/compat": "^2.1.0",
"@eslint/eslintrc": "^3.3.6",
"@eslint/js": "^10.0.1",
"@types/js-yaml": "^4.0.9",
"@types/node": "^25.2.3",
"@typescript-eslint/eslint-plugin": "8.55.0",
"@typescript-eslint/parser": "8.55.0",
"eslint": "10.0.0",
"@types/node": "^26.2.0",
"@typescript-eslint/eslint-plugin": "8.67.0",
"@typescript-eslint/parser": "8.67.0",
"eslint": "10.8.1",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsonc": "^2.21.1",
"eslint-plugin-no-unsanitized": "^4.1.4",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-security": "^3.0.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-sonarjs": "^3.0.7",
"eslint-plugin-jsonc": "^3.4.1",
"eslint-plugin-no-unsanitized": "^4.1.5",
"eslint-plugin-prettier": "^5.5.6",
"eslint-plugin-simple-import-sort": "^14.0.0",
"eslint-plugin-sonarjs": "^4.2.0",
"eslint-plugin-sort-keys-fix": "^1.1.2",
"eslint-plugin-unicorn": "^63.0.0",
"tsx": "^4.21.0"
"eslint-plugin-unicorn": "^73.0.0",
"npm-check-updates": "^23.0.2",
"tsx": "^4.23.12"
},
"packageManager": "yarn@4.12.0"
"packageManager": "yarn@4.18.0"
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"noUncheckedIndexedAccess": true,
"sourceMap": true,
"outDir": "./dist",
"types": ["node"],
"strict": false,
"strictBindCallApply": true,
"rewriteRelativeImportExtensions": true,
Expand Down
Loading
Loading