Skip to content

Commit b8c201d

Browse files
Laurent RenardLaurent Renard
Laurent Renard
authored and
Laurent Renard
committed
better packagin
1 parent 4ea58af commit b8c201d

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "smart-table-json-pointer",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "json pointer",
55
"main": "./dist/bundle/index",
6-
"module": "./dist/src/index.js",
6+
"module": "./dist/bundle/module.js",
77
"types": "./dist/declarations/index.d.ts",
88
"directories": {
99
"test": "test"
@@ -17,7 +17,7 @@
1717
"build:clean": "rm -rf ./dist && mkdir -p ./dist/bundle && cp -r ./src ./dist/src",
1818
"build:compile": "tsc",
1919
"build:bundle": "rollup -c ./rollup/build.js && rollup -c ./rollup/cdn.js",
20-
"build": "npm run build:clean && npm run build:compile && npm run build:bundle"
20+
"build": "npm run build:clean && npm run build:compile && npm run build:bundle && rm -rf ./dist/src"
2121
},
2222
"repository": {
2323
"type": "git",

rollup/build.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import node from 'rollup-plugin-node-resolve'
1+
import node from 'rollup-plugin-node-resolve';
22

33
export default {
44
input: './dist/src/index.js',
@@ -8,8 +8,11 @@ export default {
88
}, {
99
file: './dist/bundle/index.mjs',
1010
format: 'es'
11+
}, {
12+
file: './dist/bundle/module.js',
13+
format: 'es'
1114
}],
1215
plugins: [
1316
node()
1417
]
15-
}
18+
};

test/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'zora';
2-
import {pointer} from '../dist/src/index';
2+
import {pointer} from '../dist/bundle/module';
33

44
test('pointer get', t => {
55
const {get: foo} = pointer('foo');

0 commit comments

Comments
 (0)