Skip to content

Commit

Permalink
Update dependencies and configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed May 2, 2024
1 parent fd0f91d commit eea3741
Show file tree
Hide file tree
Showing 10 changed files with 176 additions and 124 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
"@rollup/plugin-swc": "^0.3.0",
"@rollup/plugin-typescript": "^11.1.6",
"@rollup/pluginutils": "^5.1.0",
"cross-env": "^7.0.3"
"cross-env": "^7.0.3",
"get-tsconfig": "^4.7.2",
"ts-jest": "^29.1.2"
}
}
3 changes: 3 additions & 0 deletions packages/conventional-changelog-config/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "conventional-changelog-techor",
"type": "module",
"scripts": {
"build:main": "rollup --config rollup.config.mjs",
"build:type": "tsc --emitDeclarationOnly --preserveWatchOutput",
Expand Down Expand Up @@ -37,6 +38,8 @@
"preset"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion packages/conventional-changelog-config/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import defineConfig from '../../rollup.config.mjs'
export default {
...defineConfig(),
input: 'src/index.ts',
output: { file: 'dist/index.js', format: 'cjs' },
output: { file: 'dist/index.js', format: 'esm' },
}
14 changes: 8 additions & 6 deletions packages/conventional-changelog-config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import parserOpts from './parser-opts'
import recommendedBumpOpts from './recommended-bump'
import writerOpts from './writer-opts'

export default async () => ({
conventionalChangelog,
parserOpts,
recommendedBumpOpts,
writerOpts
})
export default async function createPreset() {
return {
conventionalChangelog,
parserOpts,
recommendedBumpOpts,
writerOpts
}
}
2 changes: 1 addition & 1 deletion packages/semantic-release-config/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import('jest').Config} */
export default {
preset: '@techor/jest'
preset: '@techor/jest',
}
20 changes: 8 additions & 12 deletions packages/semantic-release-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build:type": "tsc --emitDeclarationOnly --preserveWatchOutput",
"build": "pnpm run \"/^build:.*/\"",
"dev": "pnpm run \"/^build:.*/\" --watch",
"test": "jest",
"test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest",
"type-check": "tsc --noEmit",
"lint": "eslint src"
},
Expand All @@ -22,17 +22,10 @@
"url": "https://github.com/techor-dev/techor/issues"
},
"sideEffects": false,
"main": "./dist/index.cjs",
"esnext": "./dist/index.mjs",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"exports": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
}
},
"publishConfig": {
"access": "public",
"provenance": true
Expand Down Expand Up @@ -63,7 +56,10 @@
"techor-conventional-commits": "workspace:^"
},
"peerDependencies": {
"semantic-release": "^23.0.0",
"@semantic-release/exec": "^6.0.3"
"@semantic-release/exec": "^6.0.3",
"semantic-release": "^23.0.0"
},
"devDependencies": {
"@semantic-release/commit-analyzer": "^12.0.0"
}
}
2 changes: 2 additions & 0 deletions packages/semantic-release-config/tests/publish/test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import configure from '../../src/configure'
import path from 'path';
const __dirname = path.dirname(new URL(import.meta.url).pathname);

it('only publishs the public packages', () => {
process.chdir(__dirname)
Expand Down
1 change: 1 addition & 0 deletions packages/semantic-release-config/tests/rules.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { analyzeCommits } from '@semantic-release/commit-analyzer'
import commitFalsely from '../../../utils/commit-falsely'
import releaseRules from '../src/rules'
import { jest } from '@jest/globals'

const createLogSpy = () => jest.spyOn(console, 'log').mockImplementation(() => null)

Expand Down
Loading

0 comments on commit eea3741

Please sign in to comment.