Skip to content

Commit 9661219

Browse files
committed
Turn esm off again
1 parent fca6653 commit 9661219

File tree

10 files changed

+28
-23
lines changed

10 files changed

+28
-23
lines changed

.mocharc.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
2-
"loader": "ts-node/esm",
2+
"require": [
3+
"ts-node/register",
4+
"source-map-support/register",
5+
"./css-modules-hook.js",
6+
"global-jsdom/register"
7+
],
38
"extension": ["ts", "tsx"],
49
"recursive": true,
510
"timeout": 10000
File renamed without changes.
File renamed without changes.
File renamed without changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@cucumber/react",
33
"version": "18.1.2",
44
"description": "React components for Cucumber",
5-
"type": "module",
5+
"type": "commonjs",
66
"main": "dist/cjs/src/index.js",
77
"types": "dist/cjs/src/index.d.ts",
88
"files": [

src/components/app/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
export * from './CICommitLink.js'
2-
export * from './EnvelopesWrapper.js'
3-
export * from './ExecutionSummary.js'
4-
export * from './FilteredResults.js'
5-
export * from './GherkinDocumentList.js'
6-
export * from './HighLight.js'
7-
export * from './NoMatchResult.js'
8-
export * from './QueriesWrapper.js'
9-
export * from './SearchBar.js'
10-
export * from './SearchWrapper.js'
11-
export * from './StatusesSummary.js'
1+
export * from './CICommitLink'
2+
export * from './EnvelopesWrapper'
3+
export * from './ExecutionSummary'
4+
export * from './FilteredResults'
5+
export * from './GherkinDocumentList'
6+
export * from './HighLight'
7+
export * from './NoMatchResult'
8+
export * from './QueriesWrapper'
9+
export * from './SearchBar'
10+
export * from './SearchWrapper'
11+
export * from './StatusesSummary'

src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import filterByStatus from './filter/filterByStatus.js'
2-
import GherkinQueryContext from './GherkinQueryContext.js'
3-
import CucumberQueryContext from './CucumberQueryContext.js'
1+
import filterByStatus from './filter/filterByStatus'
2+
import GherkinQueryContext from './GherkinQueryContext'
3+
import CucumberQueryContext from './CucumberQueryContext'
44
import SearchQueryContext, {
55
WindowUrlApi,
66
SearchQueryUpdateFn,
77
SearchQueryProps,
88
searchFromURLParams,
99
} from './SearchQueryContext'
10-
import EnvelopesQueryContext, { EnvelopesQuery } from './EnvelopesQueryContext.js'
10+
import EnvelopesQueryContext, { EnvelopesQuery } from './EnvelopesQueryContext'
1111

12-
export * as components from './components/index.js'
13-
export * as hooks from './hooks/index.js'
12+
export * as components from './components/index'
13+
export * as hooks from './hooks/index'
1414
export {
1515
GherkinQueryContext,
1616
CucumberQueryContext,

test/HighlightTest.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import assert from 'assert'
22
import ReactDOM from 'react-dom'
33
import React from 'react'
4-
import { HighLight } from '../src/components/app/index.js'
4+
import { HighLight } from '../src/components/app/index'
55
import { JSDOM } from 'jsdom'
6-
import SearchQueryContext, { SearchQueryCtx } from '../src/SearchQueryContext.js'
6+
import SearchQueryContext, { SearchQueryCtx } from '../src/SearchQueryContext'
77

88
describe('HighLight', () => {
99
function renderHighlight(text: string, query: string, markdown: boolean): Document {

test/isTagExpressionTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'assert'
2-
import isTagExpression from '../src/isTagExpression.js'
2+
import isTagExpression from '../src/isTagExpression'
33

44
describe('isTagExpression', () => {
55
it('returns false with empty string', () => {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"skipLibCheck": true,
1212
"strictNullChecks": true,
1313
"experimentalDecorators": true,
14-
"module": "ESNext",
14+
"module": "CommonJS",
1515
"lib": [
1616
"ES6",
1717
"dom"

0 commit comments

Comments
 (0)