From 9d0f2c9e08dd3691e6d9f04c046a3afe19ad46ae Mon Sep 17 00:00:00 2001 From: will Farrell Date: Sat, 18 Apr 2026 11:39:52 -0600 Subject: [PATCH] refactor: rename license.json and license.template to dotfiles Renames license.json -> .license.config.json and license.template -> .license.template. Updates internal references in .license.config.json and package.json scripts. --- .license.config.json | 0 .license.template | 0 license.json | 30 ------------- license.template | 2 - package.json | 102 ------------------------------------------- 5 files changed, 134 deletions(-) create mode 100644 .license.config.json create mode 100644 .license.template delete mode 100644 license.json delete mode 100644 license.template diff --git a/.license.config.json b/.license.config.json new file mode 100644 index 00000000..e69de29b diff --git a/.license.template b/.license.template new file mode 100644 index 00000000..e69de29b diff --git a/license.json b/license.json deleted file mode 100644 index 7b906a80..00000000 --- a/license.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "license": "license.template", - "licenseFormats": { - "js|ts": { - "eachLine": { - "prepend": "// " - } - } - }, - "ignoreFile": ".gitignore", - "ignore": [ - ".github/**/*", - ".husky/**/*", - "CNAME", - "commitlint.config.cjs", - "docs/**/*", - "LICENSE", - "license.template", - "**/.gitignore", - "**/*.fuzz.js", - "**/*.perf.js", - "**/*.test.js", - "**/*.tst.ts", - "**/*.md", - "**/*.yml", - "test/**/*", - "websites/**/*", - ".DS_Store" - ] -} diff --git a/license.template b/license.template deleted file mode 100644 index 57989fe8..00000000 --- a/license.template +++ /dev/null @@ -1,2 +0,0 @@ -Copyright 2003 - 2026 will Farrell, and 1Auth contributors. -SPDX-License-Identifier: MIT diff --git a/package.json b/package.json index f489dd4a..e69de29b 100644 --- a/package.json +++ b/package.json @@ -1,102 +0,0 @@ -{ - "name": "@1auth/monorepo", - "version": "0.0.0-beta.3", - "description": "", - "private": true, - "type": "module", - "engines": { - "node": ">=24" - }, - "engineStrict": true, - "scripts": { - "prepare": "husky", - "git:pre-commit": "npm run git:lint-staged && npm run git:test-staged", - "git:commit-msg": "commitlint --config commitlint.config.cjs --edit", - "git:lint-staged": "npm run test:lint", - "git:test-staged": "which node", - "lint": "biome check --write --no-errors-on-unmatched --files-ignore-unknown=true", - "test": "npm run test:lint && npm run test:unit && npm run test:types && npm run test:sast && npm run test:perf && npm run test:dast", - "test:lint": "biome check --staged --no-errors-on-unmatched", - "test:unit": "node --test --test-concurrency 1 --experimental-test-coverage --test-coverage-lines=98 --test-coverage-branches=95 --test-coverage-functions=97 --test-coverage-exclude=**/mock.js --test-coverage-exclude=**/*.test.js --test-coverage-exclude=**/table/*", - "test:sast": "npm run test:sast:license && npm run test:sast:lockfile && npm run test:sast:trivy && npm run test:sast:semgrep && npm run test:sast:trufflehog", - "test:sast:license": "license-check-and-add check -f license.json", - "test:sast:lockfile": "lockfile-lint --path package-lock.json --type npm --allowed-hosts npm --validate-https", - "test:sast:semgrep": "semgrep scan --config auto", - "test:sast:trivy": "trivy fs --scanners vuln,license --include-dev-deps --ignored-licenses 0BSD,Apache-2.0,BSD-1-Clause,BSD-2-Clause,BSD-3-Clause,CC0-1.0,CC-BY-4.0,ISC,MIT,Python-2.0 --exit-code 1 --disable-telemetry .", - "test:sast:trufflehog": "trufflehog filesystem --only-verified --log-level=-1 ./", - "test:types": "which tstyche > /dev/null 2>&1 && tstyche || echo 'tstyche not found, skipping type tests'", - "test:perf": "node --test ./**/*.perf.js", - "test:dast": "npm run test:dast:fuzz && npm run test:dast:zap", - "test:dast:fuzz": "node --test ./**/*.fuzz.js", - "test:dast:zap": "", - "test:dynamodb:update": "docker pull amazon/dynamodb-local", - "test:dynamodb": "docker run -p 8000:8000 amazon/dynamodb-local", - "test:postgres:update": "docker pull postgres", - "test:postgres": "docker run -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres", - "rm": "npm run rm:node_modules && npm run rm:lock", - "rm:lock": "find . -name 'package-lock.json' -type f -prune -exec rm -rf '{}' +", - "rm:node_modules": "find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +", - "update": "npm update --workspaces && npm install --workspaces", - "outdated": "npm outdated --workspaces", - "audit": "npm audit fix --workspaces", - "release:license:add": "license-check-and-add add -f license.json", - "release:license:remove": "license-check-and-add remove -f license.json", - "release:sync": "npm version $npm_package_version --workspaces; find ./packages -name \"package.json\" -exec sed -i '' -E \"s|\\\"@1auth/(.*)\\\": ([^,]*)|\\\"@1auth/\\1\\\": $(npm pkg get version)|g\" {} \\; && npm run rm && npm install", - "release:tag": "git tag $npm_package_version && git push --tags" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/willfarrell/1auth.git" - }, - "keywords": [ - "Authentication", - "Authorization", - "OWASP", - "ASVS", - "Node.js" - ], - "author": { - "name": "1auth contributors", - "url": "https://github.com/willfarrell/1auth/graphs/contributors" - }, - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/willfarrell" - }, - "bugs": { - "url": "https://github.com/willfarrell/1auth/issues" - }, - "homepage": "https://github.com/willfarrell/1auth", - "devDependencies": { - "@biomejs/biome": "^2.0.0", - "@commitlint/cli": "^20.0.0", - "@commitlint/config-conventional": "^20.0.0", - "aws-sdk-client-mock": "^4.0.0", - "fast-check": "^4.0.0", - "husky": "^9.0.0", - "license-check-and-add": "^4.0.0", - "tinybench": "^6.0.0" - }, - "overrides": { - "@sveltejs/kit": { - "cookie": "^0.7.2" - }, - "mathjs": ">=15.2.0" - }, - "devEngines": { - "runtime": { - "name": "node", - "onFail": "error" - }, - "packageManager": { - "name": "npm", - "onFail": "error" - } - }, - "workspaces": [ - "packages/*", - "websites/*", - ".github" - ] -}