Skip to content

Commit

Permalink
fix(core): relaxed dependencies ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
gperdomor committed Apr 21, 2024
1 parent dc31e3c commit 273d968
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 17 deletions.
3 changes: 0 additions & 3 deletions .commitlintrc.json

This file was deleted.

8 changes: 8 additions & 0 deletions .commitlintrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { utils } from '@commitlint/config-nx-scopes';

module.exports = {
extends: ['@commitlint/config-conventional', '@commitlint/config-nx-scopes'],
rules: {
'scope-enum': async (ctx) => [2, 'always', ['release', ...(await utils.getProjects(ctx))]],
},
};
3 changes: 3 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"release": {
"version": {
"preVersionCommand": "pnpm dlx nx run-many -t build"
},
"changelog": {
"projectChangelogs": true
}
},
"plugins": [
Expand Down
12 changes: 6 additions & 6 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"main": "./src/index.js",
"typings": "./src/index.d.ts",
"dependencies": {
"@actions/exec": "1.1.1",
"@actions/io": "1.1.3",
"chalk": "4.1.2",
"ci-info": "4.0.0",
"csv-parse": "5.5.5"
"@actions/exec": "^1.1.1",
"@actions/io": "^1.1.3",
"chalk": "^4.1.2",
"ci-info": "^4.0.0",
"csv-parse": "^5.5.5"
},
"peerDependencies": {
"@nx/devkit": "^16.0.0 || ^17.0.0 || ^18.0.0",
"tslib": "^2.5.3"
"tslib": "^2.5.0"
}
}
12 changes: 5 additions & 7 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
export { ExecListeners, ExecOptions, ExecOutput, exec, getExecOutput } from '@actions/exec';
export { ExecOptions, ExecOutput, exec, getExecOutput } from '@actions/exec';
export { CopyOptions, MoveOptions, cp, findInPath, mkdirP, mv, rmRF, which } from '@actions/io';
export { asyncForEach } from './lib/async-for-each';
export { getBooleanInput, getInput, getMultilineInput, getPosixName } from './lib/get-input';
export type { InputOptions } from './lib/get-input';
export { getInputList } from './lib/get-input-list';
export type { InputListOpts } from './lib/get-input-list';
export { InputOptions, getBooleanInput, getInput, getMultilineInput, getPosixName } from './lib/get-input';
export { InputListOpts, getInputList } from './lib/get-input-list';
export { interpolate } from './lib/interpolate';
export { loadPackage } from './lib/load-package';
export * from './lib/logging';
export { logger } from './lib/logging';
export { tmpDir } from './lib/tmp-dir';
export * from './lib/workspace';
export { getProjectRoot } from './lib/workspace';
4 changes: 3 additions & 1 deletion packages/core/src/lib/workspace.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const ctx1 = {

const ctx2 = {
root: 'workspace-folder',
workspace: { projects: { foo: { root: 'apps/foo' }, bar: { root: 'apps/bar' } } },
workspace: {
projects: { foo: { root: 'apps/foo' }, bar: { root: 'apps/bar' } },
},
};

describe('Workspace', () => {
Expand Down

0 comments on commit 273d968

Please sign in to comment.