Skip to content

Commit 9c0507b

Browse files
feat: cjs export (#123)
1 parent a13c80e commit 9c0507b

File tree

5 files changed

+28
-10
lines changed

5 files changed

+28
-10
lines changed
File renamed without changes.

babel.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ module.exports = api => {
1616
}
1717
}
1818
]
19+
],
20+
plugins: [
21+
[
22+
"add-module-exports",
23+
{
24+
addDefaultProperty: true
25+
}
26+
]
1927
]
2028
};
2129
};

package-lock.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@
4141
},
4242
"dependencies": {
4343
"cosmiconfig": "^5.2.1",
44-
"meow": "^5.0.0",
45-
"resolve-from": "^5.0.0",
44+
"fs-extra": "^8.1.0",
4645
"ip-regex": "^4.1.0",
4746
"is-absolute-url": "^3.0.0",
48-
"fs-extra": "^8.1.0"
47+
"meow": "^5.0.0",
48+
"resolve-from": "^5.0.0"
4949
},
5050
"devDependencies": {
5151
"@babel/cli": "^7.4.4",
5252
"@babel/core": "^7.4.5",
5353
"@babel/preset-env": "^7.4.5",
54-
"babel-jest": "^24.5.0",
5554
"babel-eslint": "^10.0.2",
56-
"npm-run-all": "^4.0.0",
55+
"babel-jest": "^24.5.0",
56+
"babel-plugin-add-module-exports": "^1.0.2",
5757
"eslint": "^6.0.1",
5858
"eslint-plugin-ava": "^7.1.0",
5959
"eslint-plugin-html": "^6.0.0",
@@ -68,15 +68,16 @@
6868
"eslint-plugin-react": "^7.12.4",
6969
"eslint-plugin-unicorn": "^9.1.1",
7070
"execa": "^2.0.2",
71-
"remark-cli": "^6.0.1",
72-
"remark-preset-lint-itgalaxy": "^14.0.0",
73-
"rimraf": "^2.5.2",
74-
"tempfile": "^3.0.0",
7571
"husky": "^3.0.0",
7672
"jest": "^24.5.0",
7773
"lint-staged": "^9.0.2",
74+
"npm-run-all": "^4.0.0",
7875
"prettier": "^1.18.2",
79-
"standard-version": "^6.0.1"
76+
"remark-cli": "^6.0.1",
77+
"remark-preset-lint-itgalaxy": "^14.0.0",
78+
"rimraf": "^2.5.2",
79+
"standard-version": "^6.0.1",
80+
"tempfile": "^3.0.0"
8081
},
8182
"scripts": {
8283
"prebuild": "rimraf dist",

0 commit comments

Comments
 (0)