Skip to content

Commit

Permalink
[1.0.0] Fixed typos and publish es6 module
Browse files Browse the repository at this point in the history
  • Loading branch information
ashubham committed Oct 25, 2019
1 parent 7fc0a02 commit 96ed20c
Show file tree
Hide file tree
Showing 9 changed files with 179 additions and 21 deletions.
150 changes: 150 additions & 0 deletions dist/es5/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/es5/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions dist/declarations/index.d.ts → dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export declare enum Key {
Ampersand = "&",
Eight = "8",
Star = "*",
Asterik = "*",
Asterisk = "*",
Nine = "9",
OpenParen = "(",
a = "a",
Expand Down Expand Up @@ -114,6 +114,7 @@ export declare enum Key {
Add = "+",
Subtract = "-",
DecimalPoint = ".",
MSDecimalPoint = "Decimal",
Divide = "/",
F1 = "F1",
F2 = "F2",
Expand Down Expand Up @@ -141,5 +142,5 @@ export declare enum Key {
GraveAccent = "`",
OpenBracket = "[",
ClosedBracket = "]",
Quote = "'",
Quote = "'"
}
10 changes: 5 additions & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export enum Key {
Ampersand = '&',
Eight = '8',
Star = '*',
Asterik = '*',
Asterisk = '*',
Nine = '9',
OpenParen = '(',
a = 'a',
Expand Down Expand Up @@ -115,6 +115,7 @@ export enum Key {
Add = '+',
Subtract = '-',
DecimalPoint = '.',
MSDecimalPoint = 'Decimal',
Divide = '/',
F1 = 'F1',
F2 = 'F2',
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "w3c-keys",
"version": "0.3.6",
"version": "1.0.1",
"description": "keyboardEvent.key compatible key codes with Typescript Definitions. Edit",
"main": "dist/index.js",
"types": "dist/declarations/index.d.ts",
"main": "dist/es5/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc"
"build": "tsc",
"build:es5": "tsc -p . --module commonjs --outDir dist/es5 --target es5",
"prepublish": "npm run build ; npm run build:es5"
},
"repository": {
"type": "git",
Expand All @@ -27,6 +30,6 @@
},
"homepage": "https://github.com/ashubham/w3c-keys#readme",
"devDependencies": {
"typescript": "^2.4.2"
"typescript": "^3.6.4"
}
}
9 changes: 5 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"compilerOptions": {
"declaration": true,
"declarationDir": "dist/declarations",
"module": "commonjs",
"target": "es5",
"outDir": "dist"
"declarationDir": "dist",
"module": "esnext",
"target": "es2018",
"outDir": "dist",
"sourceMap": true
},
"files": [
"index.ts"
Expand Down

0 comments on commit 96ed20c

Please sign in to comment.