Skip to content

Commit

Permalink
Add sources to the npm package
Browse files Browse the repository at this point in the history
Add `index.js`.
This allows importing the sources:

`import cloudinary from 'cloudinary_js/src';`
  • Loading branch information
Amir Tocker committed Jan 28, 2019
1 parent 47bcc4a commit 2dad6e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"directories": {
"test": "test"
},
"files": [
"src/**/*"
],
"scripts": {
"dist": "node_modules/.bin/webpack && node_modules/.bin/webpack --mode production",
"test": "node_modules/.bin/karma start karma.cloudinary-core.js --single-run --browsers=ChromeHeadless",
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import * as cloudinary from './namespace/cloudinary-core';
export * from './namespace/cloudinary-core';

export default cloudinary;

0 comments on commit 2dad6e3

Please sign in to comment.