Skip to content

Commit

Permalink
Add exports field to package.json (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Nov 9, 2021
1 parent b5baf0e commit 28b492a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
"lib"
],
"main": "lib/environment.js",
"exports": {
".": "./lib/environment.js",
"./cli/": "./cli/",
"./lib/": "./lib/",
"./lib/util/": "./lib/util/",
"./adapter": "./lib/adapter.js",
"./conflicter": "./lib/util/conflicter.js",
"./log": "./lib/util/log.js",
"./transform": "./lib/util/transform.js",
"./package.json": "./package.json"
},
"keywords": [
"development",
"dev",
Expand Down
4 changes: 2 additions & 2 deletions test/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const inquirer = require('inquirer');
const sinon = require('sinon');
const logSymbols = require('log-symbols');
const stripAnsi = require('strip-ansi');
const TerminalAdapter = require('../lib/adapter');
const createLog = require('../lib/util/log');
const TerminalAdapter = require('yeoman-environment/adapter');
const createLog = require('yeoman-environment/log');

describe('TerminalAdapter', () => {
beforeEach(function () {
Expand Down
2 changes: 1 addition & 1 deletion test/conflicter.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const sinon = require('sinon');
const slash = require('slash');
const semver = require('semver');
const {TestAdapter} = require('yeoman-test/lib/adapter');
const Conflicter = require('../lib/util/conflicter');
const Conflicter = require('yeoman-environment/conflicter');

const createActions = actions => ({
_action: actions,
Expand Down
2 changes: 1 addition & 1 deletion test/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const {
createEachFileTransform,
createYoRcTransform,
createConflicterStatusTransform
} = require('../lib/util/transform');
} = require('yeoman-environment/transform');

const passthroughFunction = function (file, _, cb) {
this.push(file);
Expand Down

0 comments on commit 28b492a

Please sign in to comment.