diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5990d9c..6ca59b7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,11 +1,7 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file - +# Dependabot version updates for the npm package. version: 2 updates: - - package-ecosystem: "" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: "npm" + directory: "/" schedule: interval: "weekly" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63c4281..488c5e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,9 +16,10 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 with: - node-version: 20 + node-version: 22 + cache: npm - name: Install dependencies - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund - name: Build and run tests run: npm test - name: Generate API coverage report diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 39c578a..4e25e5f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,9 +26,10 @@ jobs: with: node-version: 22 registry-url: https://registry.npmjs.org + cache: npm - name: Install dependencies - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund - name: Run tests and TypeScript build run: npm test diff --git a/package.json b/package.json index 7eb98a9..83d62d1 100644 --- a/package.json +++ b/package.json @@ -8,46 +8,16 @@ "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js" - }, - "./string": { - "types": "./dist/string.d.ts", - "import": "./dist/string.js" - }, - "./object": { - "types": "./dist/object.d.ts", - "import": "./dist/object.js" - }, - "./async": { - "types": "./dist/async.d.ts", - "import": "./dist/async.js" - }, - "./url": { - "types": "./dist/url.d.ts", - "import": "./dist/url.js" - }, - "./validation": { - "types": "./dist/validation.d.ts", - "import": "./dist/validation.js" - }, - "./http": { - "types": "./dist/http.d.ts", - "import": "./dist/http.js" - }, - "./browser": { - "types": "./dist/browser.d.ts", - "import": "./dist/browser.js" - }, - "./env": { - "types": "./dist/env.d.ts", - "import": "./dist/env.js" - }, - "./logger": { - "types": "./dist/logger.d.ts", - "import": "./dist/logger.js" - } + ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js" }, + "./string": { "types": "./dist/string.d.ts", "import": "./dist/string.js" }, + "./object": { "types": "./dist/object.d.ts", "import": "./dist/object.js" }, + "./async": { "types": "./dist/async.d.ts", "import": "./dist/async.js" }, + "./url": { "types": "./dist/url.d.ts", "import": "./dist/url.js" }, + "./validation": { "types": "./dist/validation.d.ts", "import": "./dist/validation.js" }, + "./http": { "types": "./dist/http.d.ts", "import": "./dist/http.js" }, + "./browser": { "types": "./dist/browser.d.ts", "import": "./dist/browser.js" }, + "./env": { "types": "./dist/env.d.ts", "import": "./dist/env.js" }, + "./logger": { "types": "./dist/logger.d.ts", "import": "./dist/logger.js" } }, "files": ["dist", "README.md", "LICENSE"], "scripts": { @@ -58,22 +28,10 @@ "prepack": "npm run build" }, "keywords": ["javascript", "typescript", "utilities", "web", "nextjs", "developer-tools"], - "engines": { - "node": ">=18" - }, - "devDependencies": { - "c8": "^10.1.3", - "typescript": "^5.8.3" - }, - "repository": { - "type": "git", - "url": "https://github.com/Velclaw/OCode.js.git" - }, - "bugs": { - "url": "https://github.com/Velclaw/OCode.js/issues" - }, - "homepage": "https://github.com/Velclaw/OCode.js#readme", - "dependencies": { - "@vercel/analytics": "^2.0.1" - } -} + "engines": { "node": ">=18" }, + "devDependencies": { "c8": "^10.1.3", "typescript": "^5.8.3" }, + "repository": { "type": "git", "url": "https://github.com/OCodejs/OCodejs.git" }, + "bugs": { "url": "https://github.com/OCodejs/OCodejs/issues" }, + "homepage": "https://github.com/OCodejs/OCodejs#readme", + "dependencies": { "@vercel/analytics": "^2.0.1" } +} \ No newline at end of file