Skip to content

Commit b28568e

Browse files
committed
Jest doesn't support subpath exports apparently.
1 parent 1a38ec0 commit b28568e

File tree

8 files changed

+12
-18
lines changed

8 files changed

+12
-18
lines changed

cli.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
export { default as Block } from './src/block'
21
export { default as torchlight } from './src/torchlight'
3-
export { default as MemoryCache } from './src/cache/memory'
4-
export { default as standardLogger } from './src/loggers/standard'
2+
export { default as Block } from './src/block'
3+
export * from './src/log'
4+
export * from './src/cache'
5+
export * from './src/config'

package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
{
22
"name": "@torchlight-api/client",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "A general purpose JavaScript client for Torchlight - the syntax highlighting API",
55
"source": "*.js",
66
"type": "module",
7-
"exports": {
8-
".": {
9-
"import": "./dist/client.esm.js",
10-
"require": "./dist/client.cjs"
11-
},
12-
"./cli": {
13-
"import": "./dist/cli.esm.js",
14-
"require": "./dist/cli.cjs"
15-
}
16-
},
7+
"main": "./dist/client.cjs",
8+
"module": "./dist/client.esm.js",
179
"scripts": {
1810
"test": "standard --env jest && jest",
1911
"build": "microbundle -f esm,cjs"

src/cache/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default as MemoryCache } from './memory'
2+
export { default as FileCache } from './file'

src/log/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default as standardLogger } from './standard'
2+
export { default as terminalLogger } from './terminal'
File renamed without changes.
File renamed without changes.

src/torchlight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import axios from 'axios'
22
import md5 from 'md5'
33
import get from 'lodash.get'
44
import chunk from 'lodash.chunk'
5-
import standardLogger from './loggers/standard'
5+
import { standardLogger } from './log'
66
import MemoryCache from './cache/memory'
77

88
/**

0 commit comments

Comments
 (0)