currency-fomatter 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "currency-fomatter",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "build": "tsc",
7
+ "build": "yarn build:esm && yarn build:cjs",
8
+ "build:esm": "tsc",
9
+ "build:cjs": "tsc --module commonjs --outDir dist/cjs",
8
10
  "test": "echo \"Error: no test specified\" && exit 1",
9
- "lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\""
11
+ "lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"",
12
+ "prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\""
10
13
  },
11
14
  "repository": {
12
15
  "type": "git",
@@ -851,4 +851,4 @@ class CurrencyFormat extends Component<MyProps, MyState> {
851
851
 
852
852
  CurrencyFormat.defaultProps = defaultProps;
853
853
 
854
- module.exports = CurrencyFormat;
854
+ export default CurrencyFormat;
package/src/index.tsx CHANGED
@@ -1,3 +1,4 @@
1
1
  import MyCounter from './components/test'
2
+ import CurrencyFormat from './components/currency'
2
3
 
3
- export { MyCounter }
4
+ export { MyCounter, CurrencyFormat }