Skip to content

Commit 13c9da4

Browse files
satazorpaulobmarcos
authored andcommitted
chore: fix repo setup (ipfs-shipyard#4)
1 parent 0c5b903 commit 13c9da4

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
coverage/
22
demo/
33
lib/
4+
es/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
npm-debug.log*
33
coverage
44
lib/
5+
es/

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
# js-idm-wallet
2-
The reference implementation of the IDM Wallet in JavaScript
1+
# idm-wallet
2+
3+
The reference implementation of the IDM Wallet in JavaScript.

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"name": "js-idm-wallet",
2+
"name": "idm-wallet",
33
"version": "0.0.0",
44
"description": "The reference implementation of the IDM Wallet in JavaScript",
5-
"main": "index.js",
5+
"main": "lib/index.js",
6+
"module": "es/index.js",
67
"homepage": "https://github.com/ipfs-shipyard/js-idm-wallet#readme",
78
"license": "MIT",
89
"repository": {
@@ -20,13 +21,16 @@
2021
"url": "https://github.com/ipfs-shipyard/js-idm-wallet/issues"
2122
},
2223
"files": [
23-
"lib"
24+
"lib",
25+
"es"
2426
],
2527
"scripts": {
28+
"build:commonjs": "BABEL_ENV=commonjs babel src -d lib",
29+
"build:es": "BABEL_ENV=es babel src -d es",
30+
"build": "npm run build:commonjs && npm run build:es",
2631
"test": "jest",
27-
"build": "babel src --out-dir lib --ignore '**/*.test.js'",
28-
"lint": "eslint --ignore-path .gitignore .",
29-
"prerelease": "npm t && npm run lint",
32+
"lint": "eslint .",
33+
"prerelease": "npm t && npm run lint && npm run build",
3034
"release": "standard-version"
3135
},
3236
"husky": {
@@ -53,10 +57,7 @@
5357
},
5458
"jest": {
5559
"collectCoverage": true,
56-
"collectCoverageFrom": [
57-
"./src/**/*.js"
58-
],
59-
"testRegex": "(/__tests__/.test.*|(\\.|/)(test|spec))\\.[jt]sx?$",
60+
"testRegex": "/__tests__/.*\\.test\\.js$",
6061
"testPathIgnorePatterns": [
6162
"/demo/",
6263
"/lib/",

0 commit comments

Comments
 (0)