Skip to content

Commit

Permalink
put wrapper.mjs in src as well
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss committed Apr 17, 2021
1 parent 3f2e640 commit 38febb5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion features/support/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Before('@global-install', function (this: World) {
'@cucumber',
'cucumber'
)
const itemsToCopy = ['bin', 'lib', 'wrapper.mjs', 'package.json']
const itemsToCopy = ['bin', 'lib', 'package.json']
itemsToCopy.forEach((item) => {
fsExtra.copySync(
path.join(projectPath, item),
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
},
"main": "./lib/index.js",
"exports": {
"import": "./wrapper.mjs",
"import": "./lib/wrapper.mjs",
"require": "./lib/index.js"
},
"types": "./lib/index.d.ts",
Expand Down Expand Up @@ -260,7 +260,7 @@
"typescript": "4.2.3"
},
"scripts": {
"build-local": "tsc -p tsconfig.node.json && cp src/importers.js lib/",
"build-local": "tsc -p tsconfig.node.json && cp src/importers.js lib/ && cp src/wrapper.mjs lib/",
"cck-test": "mocha 'compatibility/**/*_spec.ts'",
"feature-test": "node ./bin/cucumber-js",
"html-formatter": "node ./bin/cucumber-js --profile htmlFormatter",
Expand All @@ -287,7 +287,6 @@
"license": "MIT",
"files": [
"bin/",
"lib/",
"wrapper.mjs"
"lib/"
]
}
2 changes: 1 addition & 1 deletion wrapper.mjs → src/wrapper.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import cucumber from './lib/index.js'
import cucumber from './index.js'

export const Cli = cucumber.Cli
export const parseGherkinMessageStream = cucumber.parseGherkinMessageStream
Expand Down

0 comments on commit 38febb5

Please sign in to comment.