Skip to content

Commit f2e69df

Browse files
committed
Added module declaration, pointing to minimised version.
1 parent 8e6cfaa commit f2e69df

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.vscode
22
node_modules
3-
dist
3+
dist/gist.js

dist/gist.min.js

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

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module 'Gist';

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import Gist from './src/gist';
1+
import Gist from './dist/gist.min.js';
22
export default Gist;

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "2.2.0",
44
"description": "Build beautiful in-app flows with no code and deliver them instantly to your app.",
55
"private": false,
6+
"browser": "dist/gist.min.js",
67
"scripts": {
78
"start": "npm-run-all --parallel watch:server watch:build",
89
"build:prod": "webpack -p --mode=production -o dist/gist.min.js",
@@ -23,7 +24,6 @@
2324
"js-cookie": "^3.0.0",
2425
"uuid": "^8.3.2"
2526
},
26-
"main": "index.js",
2727
"repository": {
2828
"type": "git",
2929
"url": "git+ssh://[email protected]/bourbonltd/gist-web.git"

0 commit comments

Comments
 (0)