Skip to content

Commit 4812357

Browse files
authored
[Fix] Fixes the exported typings (#14)
* Fixes the exported typings
1 parent 8c5f31e commit 4812357

File tree

9 files changed

+339
-422
lines changed

9 files changed

+339
-422
lines changed

.gitignore

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# macOS
2+
.DS_Store
3+
4+
# Build
5+
dist/
6+
test-functional/test-build.js
7+
18
# Logs
29
logs
310
*.log
@@ -29,14 +36,14 @@ bower_components
2936
# node-waf configuration
3037
.lock-wscript
3138

32-
# Compiled binary addons (http://nodejs.org/api/addons.html)
39+
# Compiled binary addons (https://nodejs.org/api/addons.html)
3340
build/Release
3441

3542
# Dependency directories
3643
node_modules/
3744
jspm_packages/
3845

39-
# Typescript v1 declaration files
46+
# TypeScript v1 declaration files
4047
typings/
4148

4249
# Optional npm cache directory
@@ -57,8 +64,8 @@ typings/
5764
# dotenv environment variables file
5865
.env
5966

60-
# Build directory
61-
dist/
67+
# next.js build output
68+
.next
6269

6370
# Test files
6471
*.vcf

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.3.3
4+
5+
> Jab 31, 2021
6+
7+
- Fixes the exported typings ([#13](https://github.com/joaocarmo/vcard-creator/issues/13))
8+
39
## 0.3.2
410

511
> Jab 9, 2021

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
{
66
useBuiltIns: 'usage',
77
modules: 'umd',
8-
corejs: '3.6',
8+
corejs: '3.8',
99
},
1010
],
1111
'@babel/preset-typescript',

lib/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import VCard from './VCard'
2+
3+
export default VCard

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vcard-creator",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "A JavaScript vCard creator library for both node.js and the web",
55
"main": "./dist/vcard-creator.js",
66
"exports": {
@@ -56,21 +56,21 @@
5656
"@babel/preset-env": "^7.12.11",
5757
"@babel/preset-typescript": "^7.12.7",
5858
"@types/jest": "^26.0.20",
59-
"@typescript-eslint/eslint-plugin": "^4.12.0",
60-
"@typescript-eslint/parser": "^4.12.0",
59+
"@typescript-eslint/eslint-plugin": "^4.14.1",
60+
"@typescript-eslint/parser": "^4.14.1",
6161
"babel-core": "^6.26.3",
6262
"babel-jest": "^26.6.3",
6363
"babel-loader": "^8.2.2",
64-
"core-js": "^3.8.2",
65-
"eslint": "^7.17.0",
64+
"core-js": "^3.8.3",
65+
"eslint": "^7.19.0",
6666
"eslint-config-airbnb-base": "^14.2.1",
6767
"eslint-plugin-import": "^2.22.1",
6868
"eslint-plugin-jest": "^24.1.3",
6969
"jest": "^26.6.3",
7070
"jest-date-mock": "^1.0.8",
7171
"typescript": "^4.1.3",
72-
"webpack": "^5.12.2",
73-
"webpack-cli": "^4.3.1"
72+
"webpack": "^5.19.0",
73+
"webpack-cli": "^4.4.0"
7474
},
7575
"dependencies": {}
7676
}

test-functional/test-build.js

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

tsconfig.declaration.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"isolatedModules": false,
66
"module": "amd",
77
"noEmit": false,
8-
"outFile": "dist/vcard-creator.js"
8+
"outDir": "dist"
99
},
10+
"files": ["lib/index.ts"]
1011
}

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const testConfig = {
1919
const prodConfig = {
2020
mode,
2121
context: path.join(__dirname, 'lib'),
22-
entry: './VCard.ts',
22+
entry: './index.ts',
2323
output: {
2424
path: path.join(__dirname, 'dist'),
2525
filename: 'vcard-creator.js',

0 commit comments

Comments
 (0)