Skip to content

Commit 395e355

Browse files
committed
chore: move changelog config to config directory
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent 3621201 commit 395e355

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

changelog.config.ts renamed to config/changelog.config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import type { Readable } from 'node:stream'
3131
import sade from 'sade'
3232
import semver from 'semver'
3333
import tempfile from 'tempfile'
34-
import pkg from './package.json' assert { type: 'json' }
34+
import pkg from '../package.json' assert { type: 'json' }
3535

3636
/**
3737
* CLI flags.
@@ -333,7 +333,10 @@ sade('changelog', true)
333333
repoUrl: pkg.repository.slice(0, -4)
334334
}
335335
},
336-
headerPartial: readFileSync('templates/changelog/header.hbs', 'utf8'),
336+
headerPartial: readFileSync(
337+
'config/templates/changelog/header.hbs',
338+
'utf8'
339+
),
337340
ignoreReverted: false
338341
}
339342
).on('error', err => console.error(err.stack))

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"types": "./dist/index.d.mts",
4040
"scripts": {
4141
"build": "mkbuild",
42-
"changelog": "node --loader=./loader.mjs ./changelog.config.ts",
42+
"changelog": "node --loader=./loader.mjs ./config/changelog.config",
4343
"check:ci": "yarn dedupe --check && yarn check:format && yarn check:lint && yarn check:spelling && yarn typecheck && yarn test:cov && NODE_ENV=production yarn pack -o %s-%v.tgz && yarn docs:build && yarn clean:pack && yarn check:types:build",
4444
"check:format": "prettier --check .",
4545
"check:lint": "eslint --exit-on-fatal-error --ext cjs,cts,gql,js,json,jsonc,md,mjs,ts,vue,yml --max-warnings 0 .",

0 commit comments

Comments
 (0)