Skip to content

Commit

Permalink
#37: fixed issue when chai@5 shows up higher in dependency tree (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Mar 14, 2024
1 parent 77450e8 commit 9e82f6e
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 26 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## v1.0.0-beta.2 - [March 14, 2024](https://github.com/lando/leia/releases/tag/v1.0.0-beta.3)

* Fixed issue when `chai@5` shows up higher in the dependency tree [#37](https://github.com/lando/leia/issues/37)
* Deyarned

## v1.0.0-beta.1 - [August 19, 2023](https://github.com/lando/leia/releases/tag/v1.0.0-beta.1)
Expand Down
2 changes: 1 addition & 1 deletion lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const parseCode = (data) => ({
const parseTitle = (data, {retry, stdin}) => ({
file: data.file,
id: _.kebabCase(data.text),
chaiPath: findClosestModule('chai').split(path.sep).join('/'),
chaiPath: findClosestModule('@lando/chai').split(path.sep).join('/'),
cltPath: findClosestModule('command-line-test').split(path.sep).join('/'),
debugPath: findClosestModule('debug').split(path.sep).join('/'),
destination: path.resolve(os.tmpdir(), 'leia', hash(data.file), `${_.kebabCase(data.text)}.leia.js`),
Expand Down
43 changes: 23 additions & 20 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@
},
"dependencies": {
"@lando/argv": "^1.0.6",
"@lando/chai": "npm:chai@^4.4.1",
"@oclif/command": "^1.8.0",
"@oclif/config": "^1.17.0",
"@oclif/errors": "^1.3.5",
"@oclif/plugin-help": "^3.2.3",
"chai": "^4.4.1",
"chalk": "^4.1.2",
"command-line-test": "^1.0.10",
"debug": "^4.3.2",
Expand Down
2 changes: 1 addition & 1 deletion test/find.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

'use strict';

const chai = require('chai');
const chai = require('@lando/chai');
const filesystem = require('mock-fs');
chai.should();

Expand Down
2 changes: 1 addition & 1 deletion test/generate.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

'use strict';

const chai = require('chai');
const chai = require('@lando/chai');
const os = require('os');
chai.should();

Expand Down
2 changes: 1 addition & 1 deletion test/leia.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'use strict';

// Setup chai.
const chai = require('chai');
const chai = require('@lando/chai');
chai.should();

const Leia = require('./../lib/leia');
Expand Down
2 changes: 1 addition & 1 deletion test/parse.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

'use strict';

const chai = require('chai');
const chai = require('@lando/chai');
const path = require('path');

chai.should();
Expand Down

0 comments on commit 9e82f6e

Please sign in to comment.