-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b2a8b4
commit bf4ad29
Showing
7 changed files
with
355 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,27 +3,38 @@ | |
"version": "1.4.0", | ||
"description": "SDK for back-end (Node) and front-end (TypeScript/JavaScript) applications, to send analytics events to Mini.Digital", | ||
"private": false, | ||
"type": "module", | ||
"types": "lib/node/types/index.d.ts", | ||
"main": "lib/bundles/mini-digital-sdk.min.cjs", | ||
"module": "lib/node/index.mjs", | ||
"browser": "lib/bundles/mini-digital-sdk.min.umd.js", | ||
"exports": { | ||
".": { | ||
"import": "./lib/node/index.mjs", | ||
"require": "./lib/bundles/mini-digital-sdk.min.cjs", | ||
"types": "./lib/node/types/index.d.ts", | ||
"import": "./lib/node/index.mjs" | ||
"node": "./lib/node/index.mjs", | ||
"browser": "./lib/bundles/mini-digital-sdk.min.mjs", | ||
"default": "./lib/node/index.mjs" | ||
}, | ||
"./lib/bundles/mini-digital-sdk.min.mjs": { | ||
"import": "./lib/bundles/mini-digital-sdk.min.mjs", | ||
"types": "./lib/node/types/index.d.ts" | ||
}, | ||
"./browser": { | ||
"require": "./lib/browser/mini-digital-sdk.cjs.js", | ||
"import": "./lib/browser/mini-digital-sdk.esm.js" | ||
"./lib/bundles/mini-digital-sdk.min.cjs": { | ||
"require": "./lib/bundles/mini-digital-sdk.min.cjs" | ||
}, | ||
"./lib/bundles/mini-digital-sdk.min.umd.js": { | ||
"import": "./lib/bundles/mini-digital-sdk.min.umd.js", | ||
"types": "./lib/node/types/index.d.ts" | ||
} | ||
}, | ||
"type": "module", | ||
"types": "lib/node/types/index.d.ts", | ||
"main": "lib/node/index.mjs", | ||
"module": "lib/browser/mini-digital-sdk.esm.js", | ||
"browser": "lib/browser/mini-digital-sdk.esm.js", | ||
"scripts": { | ||
"clean": "rm -rf ./lib", | ||
"build": "npm run build:node && npm run build:post && npm run build:browser", | ||
"build:node": "npm run clean && tsc --build && mv lib/node/index.js lib/node/index.mjs", | ||
"build:browser": "rollup -c", | ||
"build:post": "node post-build.js", | ||
"build": "run-s clean build:node build:post-node-pre-bundles build:bundles", | ||
"build:node": "tsc --build && mv lib/node/index.js lib/node/index.mjs", | ||
"build:post-node-pre-bundles": "node post-node-build.js", | ||
"build:bundles": "rollup -c", | ||
"prepare": "npm run build", | ||
"test": "vitest run", | ||
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore" | ||
|
@@ -50,6 +61,7 @@ | |
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-vitest": "^0.2.6", | ||
"jsdom": "^22.1.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^3.0.0", | ||
"rollup": "^3.26.3", | ||
"typescript": "^5.1.6", | ||
|
@@ -71,10 +83,11 @@ | |
"url": "https://github.com/WunderbarNetwork/mini-digital-sdk-js/issues" | ||
}, | ||
"directories": { | ||
"lib": "lib" | ||
"lib": "./lib", | ||
"test": "./test" | ||
}, | ||
"files": [ | ||
"lib/**/*" | ||
"./lib/**/*" | ||
], | ||
"contributors": [ | ||
"Miloš Ranđelović <[email protected]>" | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.