@unchainedshop/core 1.1.4 → 1.2.0

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/jest.config.js ADDED
@@ -0,0 +1,5 @@
1
+ /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2
+ export default {
3
+ preset: 'ts-jest',
4
+ testEnvironment: 'node',
5
+ };
package/package.json CHANGED
@@ -1,15 +1,19 @@
1
1
  {
2
2
  "name": "@unchainedshop/core",
3
- "version": "1.1.4",
3
+ "version": "1.2.0",
4
4
  "main": "lib/core-index.js",
5
+ "exports": {
6
+ ".": "./lib/core-index.js",
7
+ "./*": "./lib/*"
8
+ },
5
9
  "types": "lib/core-index.d.ts",
6
10
  "type": "module",
7
11
  "scripts": {
12
+ "prepublishOnly": "npm install && npm run build || :",
8
13
  "clean": "rm -rf lib",
9
- "build": "npm run clean && tsc -p tsconfig.build.json",
10
- "watch": "tsc --watch",
11
- "link:core": "npm link @unchainedshop/types",
12
- "test": "cross-env METEOR_PACKAGE_DIRS=../ TEST_CLIENT=0 TEST_WATCH=1 meteor test-packages ./ --driver-package meteortesting:mocha --port 4200"
14
+ "build": "npm run clean && tsc",
15
+ "watch": "tsc -w",
16
+ "test": "jest --watch"
13
17
  },
14
18
  "repository": {
15
19
  "type": "git",
@@ -27,33 +31,32 @@
27
31
  },
28
32
  "homepage": "https://github.com/unchainedshop/unchained#readme",
29
33
  "dependencies": {
30
- "@unchainedshop/core-accountsjs": "^1.1.3",
31
- "@unchainedshop/core-assortments": "^1.1.5",
32
- "@unchainedshop/core-bookmarks": "^1.1.5",
33
- "@unchainedshop/core-countries": "^1.1.4",
34
- "@unchainedshop/core-currencies": "^1.1.4",
35
- "@unchainedshop/core-delivery": "^1.1.4",
36
- "@unchainedshop/core-enrollments": "^1.1.4",
37
- "@unchainedshop/core-events": "^1.1.4",
38
- "@unchainedshop/core-files": "^1.1.4",
39
- "@unchainedshop/core-filters": "^1.1.3",
40
- "@unchainedshop/core-languages": "^1.1.4",
41
- "@unchainedshop/core-messaging": "^1.1.4",
42
- "@unchainedshop/core-orders": "^1.1.4",
43
- "@unchainedshop/core-payment": "^1.1.5",
44
- "@unchainedshop/core-products": "^1.1.3",
45
- "@unchainedshop/core-quotations": "^1.1.4",
46
- "@unchainedshop/core-users": "^1.1.4",
47
- "@unchainedshop/core-warehousing": "^1.1.4",
48
- "@unchainedshop/core-worker": "^1.1.4",
49
- "@unchainedshop/logger": "^1.1.3"
34
+ "@unchainedshop/core-accountsjs": "^1.1.9",
35
+ "@unchainedshop/core-assortments": "^1.1.9",
36
+ "@unchainedshop/core-bookmarks": "^1.1.9",
37
+ "@unchainedshop/core-countries": "^1.1.9",
38
+ "@unchainedshop/core-currencies": "^1.1.9",
39
+ "@unchainedshop/core-delivery": "^1.1.9",
40
+ "@unchainedshop/core-enrollments": "^1.1.9",
41
+ "@unchainedshop/core-events": "^1.1.9",
42
+ "@unchainedshop/core-files": "^1.1.9",
43
+ "@unchainedshop/core-filters": "^1.1.9",
44
+ "@unchainedshop/core-languages": "^1.1.9",
45
+ "@unchainedshop/core-messaging": "^1.1.9",
46
+ "@unchainedshop/core-orders": "^1.1.9",
47
+ "@unchainedshop/core-payment": "^1.1.9",
48
+ "@unchainedshop/core-products": "^1.1.9",
49
+ "@unchainedshop/core-quotations": "^1.1.9",
50
+ "@unchainedshop/core-users": "^1.1.9",
51
+ "@unchainedshop/core-warehousing": "^1.1.9",
52
+ "@unchainedshop/core-worker": "^1.1.9",
53
+ "@unchainedshop/logger": "^1.1.9"
50
54
  },
51
55
  "devDependencies": {
52
- "@types/chai": "^4.3.1",
53
- "@types/mocha": "^9.1.1",
54
- "@unchainedshop/types": "^1.1.2",
55
- "chai": "^4.3.6",
56
- "cross-env": "^7.0.3",
56
+ "@types/node": "^16.11.44",
57
+ "@unchainedshop/types": "^1.1.9",
58
+ "jest": "^28.1.2",
59
+ "ts-jest": "^28.0.5",
57
60
  "typescript": "^4.7.4"
58
61
  }
59
62
  }
package/tsconfig.json CHANGED
@@ -1,8 +1,29 @@
1
1
  {
2
- "extends": "./tsconfig.build.json",
3
2
  "compilerOptions": {
4
- "noEmit": true,
5
- "types": ["node", "mocha"]
3
+ "allowJs": true,
4
+ "allowSyntheticDefaultImports": true,
5
+ "declaration": true,
6
+ "esModuleInterop": true,
7
+ "experimentalDecorators": true,
8
+ "forceConsistentCasingInFileNames": true,
9
+ "lib": [
10
+ "esnext"
11
+ ],
12
+ "module": "esnext",
13
+ "moduleResolution": "node",
14
+ "noImplicitReturns": true,
15
+ "noUnusedLocals": false,
16
+ "outDir": "lib",
17
+ "preserveWatchOutput": true,
18
+ "skipLibCheck": true,
19
+ "sourceMap": true,
20
+ "target": "esnext",
21
+ "types": [
22
+ "node",
23
+ "jest"
24
+ ]
6
25
  },
7
- "include": ["src", "tests"]
8
- }
26
+ "include": [
27
+ "src"
28
+ ]
29
+ }
@@ -1,26 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "allowJs": true,
4
- "allowSyntheticDefaultImports": true,
5
- "declaration": true,
6
- "esModuleInterop": true,
7
- "experimentalDecorators": true,
8
- "forceConsistentCasingInFileNames": true,
9
- "lib": ["esnext"],
10
- "module": "esnext",
11
- "moduleResolution": "node",
12
- "noImplicitReturns": true,
13
- "noUnusedLocals": false,
14
- "outDir": "lib",
15
- "preserveWatchOutput": true,
16
- "skipLibCheck": true,
17
- "sourceMap": true,
18
- "target": "esnext",
19
- "types": ["node"],
20
- "baseUrl": ".", // This must be specified if "paths" is.
21
- "paths": {
22
- "meteor/unchained:*": ["node_modules/@unchainedshop/types/index.d.ts"]
23
- }
24
- },
25
- "include": ["src"]
26
- }