Skip to content

Commit

Permalink
chore: move defineConfig to a separate module
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusrbrown committed Mar 19, 2024
1 parent 8b54d8b commit eacecb2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion packages/semantic-release/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@swc/core": "1.4.6",
"semantic-release": "23.0.2",
"tsup": "8.0.2",
"type-fest": "4.12.0",
"type-fest": "4.13.0",
"vitest": "1.3.1"
},
"peerDependencies": {
Expand Down
11 changes: 11 additions & 0 deletions packages/semantic-release/src/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type {SemanticReleaseConfig} from './types'

/**
* Define semantic-release global config.
*
* @param config Semantic Release configuration
* @returns Semantic Release configuration
*/
export function defineConfig(config: SemanticReleaseConfig) {
return config
}
13 changes: 1 addition & 12 deletions packages/semantic-release/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,2 @@
import type {SemanticReleaseConfig} from './types'

/**
* Define semantic-release global config.
*
* @param config Semantic Release configuration
* @returns Semantic Release configuration
*/
export function defineConfig(config: SemanticReleaseConfig): SemanticReleaseConfig {
return config
}

export {defineConfig} from './config'
export type * from './types'
10 changes: 2 additions & 8 deletions pnpm-lock.yaml

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

0 comments on commit eacecb2

Please sign in to comment.