@danhezcode/test-auto-release 1.0.0 โ†’ 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@danhezcode/test-auto-release",
3
3
  "type": "module",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "description": "A starter for creating a TypeScript package.",
6
- "author": "danhezcode@gmail.com",
6
+ "author": "Author Name <author.name@mail.com>",
7
7
  "license": "MIT",
8
- "homepage": "https://github.com/DanhezCode/test-release#readme",
8
+ "homepage": "https://github.com/author/library#readme",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git+https://github.com/DanhezCode/test-release.git"
11
+ "url": "git+https://github.com/author/library.git"
12
12
  },
13
13
  "bugs": {
14
- "url": "https://github.com/DanhezCode/test-release/issues"
14
+ "url": "https://github.com/author/library/issues"
15
15
  },
16
16
  "exports": {
17
17
  ".": "./dist/index.mjs",
@@ -20,20 +20,9 @@
20
20
  "main": "./dist/index.mjs",
21
21
  "module": "./dist/index.mjs",
22
22
  "types": "./dist/index.d.mts",
23
- "scripts": {
24
- "lint": "eslint . --ext .ts",
25
- "lint:fix": "eslint . --ext .ts --fix",
26
- "typecheck": "tsc --noEmit",
27
- "format:prettier": "prettier --write .",
28
- "format:all": "pnpm lint:fix && pnpm format:prettier",
29
- "check": "concurrently \"pnpm format:all\" \"pnpm typecheck\"",
30
- "check:all": "concurrently \"pnpm format:all\" \"pnpm typecheck\" \"pnpm test\"",
31
- "test": "vitest run",
32
- "test:watch": "vitest --watch",
33
- "test:coverage": "vitest run --coverage",
34
- "release": "semantic-release",
35
- "prepare": "husky"
36
- },
23
+ "files": [
24
+ "dist"
25
+ ],
37
26
  "devDependencies": {
38
27
  "@commitlint/cli": "20.3.0",
39
28
  "@commitlint/config-conventional": "20.3.0",
@@ -49,11 +38,19 @@
49
38
  "prettier": "3.7.4",
50
39
  "tsdown": "0.20.0-beta.4",
51
40
  "typescript-eslint": "8.51.0",
52
- "vitest": "4.0.17",
53
- "@semantic-release/changelog": "6.0.3",
54
- "@semantic-release/git": "10.0.1",
55
- "@semantic-release/github": "12.0.6",
56
- "@semantic-release/npm": "13.1.4",
57
- "semantic-release": "25.0.3"
41
+ "vitest": "4.0.17"
42
+ },
43
+ "scripts": {
44
+ "lint": "eslint . --ext .ts",
45
+ "lint:fix": "eslint . --ext .ts --fix",
46
+ "typecheck": "tsc --noEmit",
47
+ "format:prettier": "prettier --write .",
48
+ "format:all": "pnpm lint:fix && pnpm format:prettier",
49
+ "check": "concurrently \"pnpm format:all\" \"pnpm typecheck\"",
50
+ "check:all": "concurrently \"pnpm format:all\" \"pnpm typecheck\" \"pnpm test\"",
51
+ "test": "vitest run",
52
+ "test:watch": "vitest --watch",
53
+ "test:coverage": "vitest run --coverage",
54
+ "release": "semantic-release"
58
55
  }
59
- }
56
+ }
@@ -1,54 +0,0 @@
1
- name: Release
2
-
3
- on:
4
- workflow_run:
5
- workflows: ["Validations"]
6
- types: [completed]
7
- branches: [main]
8
- workflow_dispatch:
9
-
10
- permissions:
11
- contents: write
12
- id-token: write
13
- issues: write
14
- pull-requests: write
15
- packages: write
16
-
17
- jobs:
18
- release:
19
- name: Semantic Release
20
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
21
- runs-on: ubuntu-latest
22
- timeout-minutes: 10
23
- concurrency: release
24
-
25
- steps:
26
- - name: Checkout repo
27
- uses: actions/checkout@v4
28
- with:
29
- fetch-depth: 0 # Necesario para semantic-release
30
-
31
- - name: Setup Node.js
32
- uses: actions/setup-node@v4
33
- with:
34
- node-version: 24
35
-
36
- - name: Setup pnpm
37
- uses: pnpm/action-setup@v4
38
- with:
39
- version: 10
40
-
41
- - name: Install dependencies
42
- run: pnpm install --frozen-lockfile
43
-
44
- # - name: Audit dependencies
45
- # run: pnpm audit --prod --audit-level=moderate && pnpm audit signatures
46
-
47
- # - name: Build
48
- # run: pnpm build
49
-
50
- - name: Semantic Release
51
- env:
52
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
54
- run: pnpm release
@@ -1,63 +0,0 @@
1
- name: Validations
2
-
3
- on:
4
- pull_request:
5
- branches: ["**"]
6
-
7
- push:
8
- branches: [main, develop]
9
-
10
- workflow_dispatch:
11
-
12
- permissions:
13
- checks: write
14
- statuses: write
15
- contents: read
16
- pull-requests: read
17
-
18
- jobs:
19
- validate:
20
- name: Validate Code Quality
21
- runs-on: ubuntu-latest
22
- timeout-minutes: 15
23
-
24
- steps:
25
- - name: Checkout repo
26
- uses: actions/checkout@v4
27
- with:
28
- fetch-depth: 0 # Necesario para commitlint
29
-
30
- - name: Setup Node.js
31
- uses: actions/setup-node@v4
32
- with:
33
- node-version: 24
34
-
35
- - name: Setup pnpm
36
- uses: pnpm/action-setup@v4
37
- with:
38
- version: 10
39
-
40
- - name: Install dependencies
41
- run: pnpm install --frozen-lockfile
42
-
43
- - name: Lint
44
- run: pnpm lint:fix
45
-
46
- - name: Format check
47
- run: pnpm format:prettier
48
-
49
- - name: TypeScript check
50
- run: pnpm typecheck
51
-
52
- - name: Run tests
53
- run: pnpm test
54
-
55
- # - name: Build check
56
- # run: pnpm build
57
-
58
- # - name: Audit dependencies
59
- # run: pnpm audit --prod --audit-level=moderate && pnpm audit signatures
60
-
61
- - name: Commitlint
62
- if: github.event_name == 'pull_request'
63
- run: pnpm commitlint --from=${{ github.event.pull_request.base.sha }} --to=HEAD
package/CHANGELOG.md DELETED
@@ -1,25 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- # 1.0.0 (2026-04-02)
6
-
7
-
8
- ### Bug Fixes
9
-
10
- * update package.json ([cf63326](https://github.com/DanhezCode/test-release/commit/cf63326a28d6e1220c89a202e35f29b0a411f6ee))
11
-
12
-
13
- ### Features
14
-
15
- * add ESLint and Prettier configuration files for code quality ([f1446e6](https://github.com/DanhezCode/test-release/commit/f1446e6d9e470f604954edf00340676d3064e777))
16
- * add semantic release configuration and initial project setup ([3722ca8](https://github.com/DanhezCode/test-release/commit/3722ca84a66f4a4dc0b3ed3b35da1831bef93a56))
17
- * add semantic-release ([0beb66d](https://github.com/DanhezCode/test-release/commit/0beb66db048bf6d3a2ffad1241fb3f81b42bffe0))
18
- * comment out build and audit steps in workflows ([75f11bc](https://github.com/DanhezCode/test-release/commit/75f11bc63755f71dd9d01304c2428ec86d6d1c00))
19
- * enhance tsconfig.json with additional compiler options and improved organization ([1abac8e](https://github.com/DanhezCode/test-release/commit/1abac8e775a94656d1df36f914c0abba7bb4ad58))
20
- * up v ([6d8aa74](https://github.com/DanhezCode/test-release/commit/6d8aa74112aaee1c494714ef52273dcc65cccbfc))
21
- * up v1.0.1 ([1cc7e47](https://github.com/DanhezCode/test-release/commit/1cc7e47ca4d13aa608af0f8d5c40b04ab630c0a5))
22
- * update ESLint config to ignore 'bench' and include test files in tsconfig ([28b9620](https://github.com/DanhezCode/test-release/commit/28b9620328e070ab2da9beab8276334b834b6dff))
23
- * update package metadata with correct author and repository details ([5a5d652](https://github.com/DanhezCode/test-release/commit/5a5d652531689a352223b3920500b06ad450dcab))
24
- * update package name to include scope ([58917fe](https://github.com/DanhezCode/test-release/commit/58917fe498760b359c652ca0eaf340ad7ede8ed9))
25
- * update scripts in package.json for linting, formatting, and testing ([c4a46cd](https://github.com/DanhezCode/test-release/commit/c4a46cd55f3757927f1edb974855eff9b37c900f))
@@ -1 +0,0 @@
1
- export default { extends: ["@commitlint/config-conventional"] };
package/eslint.config.js DELETED
@@ -1,213 +0,0 @@
1
- // Base ESLint configs
2
- import js from "@eslint/js";
3
- import ts from "typescript-eslint";
4
-
5
- // Plugins
6
- import globals from "globals";
7
- import importPlugin from "eslint-plugin-import";
8
- import { readFileSync } from "node:fs";
9
- import { defineConfig } from "eslint/config";
10
- // import reactPlugin from "eslint-plugin-react";
11
-
12
- const gitignore = readFileSync(".gitignore", "utf8").split("\n").filter(Boolean);
13
-
14
- export default defineConfig(
15
- /**
16
- * -------------------------------------------------------
17
- * Files and folders to ignore during linting
18
- * -------------------------------------------------------
19
- */
20
-
21
- {
22
- ignores: [
23
- // Gitignored files and folders
24
- ...gitignore,
25
-
26
- // NEXT: Ignore bench temporarily, remove later
27
- "bench",
28
-
29
- // Configuration files
30
- "*.config.{mjs,js,ts}",
31
-
32
- // Dependency folders
33
- "node_modules",
34
-
35
- // Lockfiles (pnpm, bun, npm, yarn)
36
- "pnpm-lock.yaml",
37
- "bun.lock",
38
- "package-lock.json",
39
- "yarn.lock",
40
-
41
- // Build artifacts
42
- "dist",
43
- "coverage",
44
- "build",
45
- ],
46
- },
47
-
48
- /**
49
- * -------------------------------------------------------
50
- * Base JavaScript recommended rules
51
- * -------------------------------------------------------
52
- */
53
- js.configs.recommended,
54
-
55
- /**
56
- * -------------------------------------------------------
57
- * TypeScript recommended rules
58
- * - Includes type-aware rules via recommendedTypeChecked
59
- * -------------------------------------------------------
60
- */
61
-
62
- ts.configs.recommendedTypeChecked,
63
-
64
- /**
65
- * Enable type-aware linting for TS files
66
- * (Required for rules that need type information)
67
- */
68
- {
69
- languageOptions: {
70
- parserOptions: {
71
- projectService: true,
72
- },
73
- },
74
- },
75
-
76
- /**
77
- * -------------------------------------------------------
78
- * Import plugin configuration
79
- * - Enforces clean, consistent import ordering
80
- * - Alphabetizes imports
81
- * - Adds TypeScript resolver to avoid false positives
82
- * -------------------------------------------------------
83
- */
84
- {
85
- plugins: {
86
- import: importPlugin,
87
- },
88
- settings: {
89
- // Ensures eslint-plugin-import resolves TS paths correctly
90
- "import/resolver": {
91
- typescript: {
92
- project: "./tsconfig.json",
93
- alwaysTryTypes: true,
94
- },
95
- node: {
96
- extensions: [".js", ".ts"],
97
- },
98
- },
99
- },
100
- rules: {
101
- "import/order": [
102
- "error",
103
- {
104
- groups: ["builtin", "external", "internal", "parent", "sibling", "index"],
105
- "newlines-between": "always",
106
- alphabetize: { order: "asc", caseInsensitive: true },
107
- },
108
- ],
109
- },
110
- },
111
-
112
- /**
113
- * -------------------------------------------------------
114
- * Global variables for browser and Node environments
115
- * -------------------------------------------------------
116
- */
117
- {
118
- languageOptions: {
119
- globals: {
120
- ...globals.browser,
121
- ...globals.node,
122
- },
123
- },
124
- },
125
-
126
- /**
127
- * -------------------------------------------------------
128
- * Custom rules (your explicit, clean, no-magic style)
129
- * -------------------------------------------------------
130
- */
131
- {
132
- rules: {
133
- // Disable base rule and use TS version instead
134
- "no-unused-vars": "off",
135
-
136
- // Allow unused variables prefixed with "__"
137
- "@typescript-eslint/no-unused-vars": [
138
- "error",
139
- { argsIgnorePattern: "^__", varsIgnorePattern: "^__" },
140
- ],
141
-
142
- // Allow console.warn and console.error only
143
- // "no-console": ["warn", { allow: ["warn", "error"] }],
144
-
145
- // Enforce consistent type imports
146
- "@typescript-eslint/consistent-type-imports": [
147
- "error",
148
- { prefer: "type-imports", fixStyle: "inline-type-imports" },
149
- ],
150
- },
151
- },
152
-
153
- /**
154
- * -------------------------------------------------------
155
- * React support (commented out)
156
- * - Enables React linting rules
157
- * - Includes JSX runtime rules for React 17+
158
- * - Auto-detects installed React version
159
- * -------------------------------------------------------
160
- */
161
- // {
162
- // files: ["**/*.jsx", "**/*.tsx"],
163
- // plugins: {
164
- // react: reactPlugin,
165
- // },
166
- // rules: {
167
- // // Recommended React rules
168
- // ...reactPlugin.configs.recommended.rules,
169
- // // Rules for the new JSX transform (no need to import React)
170
- // ...reactPlugin.configs["jsx-runtime"].rules,
171
- // },
172
- // settings: {
173
- // react: {
174
- // version: "detect", // Automatically detects installed React version
175
- // },
176
- // },
177
- // },
178
-
179
- /**
180
- * -------------------------------------------------------
181
- * Preact support (commented out)
182
- * - Enables Preact-specific JSX linting
183
- * - Uses eslint-plugin-react compatibility mode
184
- * - Works with @preact/preset-vite or Next.js + Preact
185
- * -------------------------------------------------------
186
- */
187
- // {
188
- // files: ["**/*.jsx", "**/*.tsx"],
189
- // plugins: {
190
- // react: reactPlugin,
191
- // },
192
- // settings: {
193
- // react: {
194
- // pragma: "h", // Preact's JSX pragma
195
- // version: "detect",
196
- // },
197
- // // Allows eslint-plugin-import to resolve Preact aliases
198
- // "import/resolver": {
199
- // alias: {
200
- // map: [
201
- // ["react", "preact/compat"],
202
- // ["react-dom", "preact/compat"],
203
- // ],
204
- // extensions: [".js", ".jsx", ".ts", ".tsx"],
205
- // },
206
- // },
207
- // },
208
- // rules: {
209
- // // React rules still apply because Preact uses the same JSX semantics
210
- // ...reactPlugin.configs.recommended.rules,
211
- // },
212
- // },
213
- );
@@ -1,12 +0,0 @@
1
- export default {
2
- semi: true,
3
- singleQuote: false,
4
- jsxSingleQuote: false,
5
- trailingComma: "all",
6
- printWidth: 100,
7
- tabWidth: 2,
8
- useTabs: false,
9
- arrowParens: "avoid",
10
- bracketSpacing: true,
11
- endOfLine: "lf",
12
- }
@@ -1,41 +0,0 @@
1
- /** @type {import('semantic-release').GlobalConfig} */
2
- export default {
3
- branches: ["main", { name: "beta", prerelease: "beta", channel: "beta" }],
4
- plugins: [
5
- "@semantic-release/commit-analyzer",
6
- [
7
- "@semantic-release/release-notes-generator",
8
- {
9
- changelogFile: "CHANGELOG.md",
10
- presetConfig: {
11
- types: [
12
- { type: "feat", section: "๐Ÿš€ New Features", hidden: false },
13
- { type: "fix", section: "๐Ÿž Bug Fixes", hidden: false },
14
- { type: "docs", section: "๐Ÿ“š Documentation Improvements", hidden: false },
15
- { type: "style", section: "๐ŸŽจ Code Style & Formatting", hidden: false },
16
- { type: "refactor", section: "๐Ÿ”ง Code Refactoring", hidden: false },
17
- { type: "perf", section: "โšก Performance Improvements", hidden: false },
18
- { type: "test", section: "๐Ÿงช Test Updates", hidden: false },
19
- { type: "chore", section: "๐Ÿ“ฆ Internal Maintenance", hidden: false },
20
- ],
21
- },
22
- },
23
- ],
24
- [
25
- "@semantic-release/changelog",
26
- {
27
- changelogFile: "CHANGELOG.md",
28
- changelogTitle:
29
- "# Changelog\n\nAll notable changes to this project will be documented in this file.",
30
- },
31
- ],
32
- ["@semantic-release/npm", { npmPublish: true }],
33
- ["@semantic-release/git", { assets: ["CHANGELOG.md"] }],
34
- [
35
- "@semantic-release/github",
36
- {
37
- assets: ["dist/**/*", "docs/**/*", "package.json", "CHANGELOG.md", "README.md", "LICENSE"],
38
- },
39
- ],
40
- ],
41
- };
package/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
- export function fn() {
2
- return 'Hello, tsdown!'
3
- }
@@ -1,7 +0,0 @@
1
- import { expect, test } from 'vitest'
2
-
3
- import { fn } from '../src'
4
-
5
- test('fn', () => {
6
- expect(fn()).toBe('Hello, tsdown!')
7
- })
package/tsconfig.json DELETED
@@ -1,61 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- // ----------------------------------------
4
- // JS/TS language features
5
- // ----------------------------------------
6
- "target": "ESNext", // Use latest JS features
7
- "lib": ["ESNext"], // Include latest JS APIs
8
- // "allowJs": true, // Allow .js files in the project
9
-
10
- // ----------------------------------------
11
- // Interoperability
12
- // ----------------------------------------
13
- "resolveJsonModule": true, // Allow importing .json files
14
- "types": ["node"], // Include Node.js type definitions
15
- "esModuleInterop": true, // Enable default-like imports for CommonJS
16
-
17
- // ----------------------------------------
18
- // Core build behavior
19
- // ----------------------------------------
20
- "incremental": true, // Enable incremental compilation for faster rebuilds
21
- "declaration": true, // Generate .d.ts type declaration files
22
- "emitDeclarationOnly": true, // Emit only .d.ts files without generating JavaScript
23
- // "noEmit": true, // Type checking only; do not emit JS
24
- // "outDir": "./dist", // Output directory for emitted files
25
-
26
- // ----------------------------------------
27
- // Module system & resolution
28
- // ----------------------------------------
29
- "module": "preserve", // Keep import/export syntax as written
30
- "moduleResolution": "bundler", // Modern bundler-friendly resolution
31
- "moduleDetection": "force", // Force module detection for ESNext
32
- "verbatimModuleSyntax": true, // Preserve exact import/export syntax
33
- // "allowImportingTsExtensions": true, // Allow importing .ts with explicit extensions
34
-
35
- // ----------------------------------------
36
- // Type checking & strictness
37
- // ----------------------------------------
38
- "strict": true, // Enable all strict type checking
39
- "skipLibCheck": true, // Skip type checking of external libs
40
- "noFallthroughCasesInSwitch": true, // Prevent silent fallthrough
41
- "noUncheckedIndexedAccess": true, // Safer indexed access
42
- "noImplicitOverride": true, // Require `override` keyword
43
- "isolatedDeclarations": true, // Ensure each file can generate its own .d.ts in isolation (safer, deterministic types)
44
-
45
- // ----------------------------------------
46
- // Misc flags
47
- // ----------------------------------------
48
- "noUnusedLocals": false, // Allow unused local variables (fix by linter)
49
- "noUnusedParameters": false, // Allow unused function parameters (useful for API signatures or future expansion)
50
- "noPropertyAccessFromIndexSignature": false // Permit direct property access even when coming from an index signature
51
-
52
- // ----------------------------------------
53
- // JSX
54
- // ----------------------------------------
55
- // "jsx": "react-jsx", // Modern JSX transform
56
- // "jsxImportSource": "preact", // Uncomment for Preact
57
- },
58
-
59
- // Only analyze files inside src/
60
- "include": ["src", "tests"]
61
- }
package/tsdown.config.ts DELETED
@@ -1,6 +0,0 @@
1
- import { defineConfig } from 'tsdown'
2
-
3
- export default defineConfig({
4
- exports: true,
5
- // ...config options
6
- })