@cloudcommerce/app-discounts 2.9.0 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-discounts",
3
3
  "type": "module",
4
- "version": "2.9.0",
4
+ "version": "2.10.1",
5
5
  "description": "E-Com Plus Cloud Commerce app for complex discount rules",
6
6
  "main": "lib/discounts.js",
7
+ "files": [
8
+ "/lib",
9
+ "/lib-mjs",
10
+ "/types",
11
+ "/*.{js,mjs,ts}"
12
+ ],
7
13
  "repository": {
8
14
  "type": "git",
9
15
  "url": "git+https://github.com/ecomplus/cloud-commerce.git",
@@ -17,10 +23,10 @@
17
23
  "homepage": "https://github.com/ecomplus/cloud-commerce/tree/main/packages/apps/discounts#readme",
18
24
  "dependencies": {
19
25
  "@ecomplus/utils": "1.5.0-rc.6",
20
- "@cloudcommerce/api": "2.9.0"
26
+ "@cloudcommerce/api": "2.10.1"
21
27
  },
22
28
  "devDependencies": {
23
- "@cloudcommerce/types": "2.9.0"
29
+ "@cloudcommerce/types": "2.10.1"
24
30
  },
25
31
  "scripts": {
26
32
  "build": "bash ../../../scripts/build-lib.sh"
@@ -1,5 +0,0 @@
1
-
2
-
3
- > @cloudcommerce/app-discounts@2.8.8 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/discounts
4
- > bash ../../../scripts/build-lib.sh
5
-
package/CHANGELOG.md DELETED
@@ -1 +0,0 @@
1
- Please refer to GitHub [repository releases](https://github.com/ecomplus/cloud-commerce/releases) or monorepo unified [CHANGELOG.md](https://github.com/ecomplus/cloud-commerce/blob/main/CHANGELOG.md).
package/src/discounts.ts DELETED
@@ -1,7 +0,0 @@
1
- /* eslint-disable import/prefer-default-export */
2
- import type { AppModuleBody } from '@cloudcommerce/types';
3
- import handleApplyDiscount from '../lib-mjs/apply-discount.mjs';
4
-
5
- export const applyDiscount = async (modBody: AppModuleBody) => {
6
- return handleApplyDiscount(modBody);
7
- };
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './discounts';
package/tsconfig.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "../../../tsconfig.json",
3
- "compilerOptions": {
4
- "declaration": true
5
- }
6
- }