jamespot-front-business 1.2.35 → 1.2.37
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/dist/cjs.js +665 -548
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +665 -542
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +8113 -25506
- package/package.json +31 -32
- package/rollup.config.mjs +36 -0
- package/tsconfig.json +22 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-front-business",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.37",
|
|
4
4
|
"description": "typescript utils",
|
|
5
5
|
"main": "dist/cjs.js",
|
|
6
6
|
"module": "dist/esm.js",
|
|
@@ -17,44 +17,43 @@
|
|
|
17
17
|
],
|
|
18
18
|
"author": "Jamespot",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@changesets/cli": "^2.
|
|
21
|
-
"@
|
|
22
|
-
"@rollup/plugin-
|
|
23
|
-
"@
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
26
|
-
"@
|
|
27
|
-
"eslint": "^8.19.0",
|
|
28
|
-
"eslint-config-prettier": "^8.5.0",
|
|
29
|
-
"eslint-import-resolver-typescript": "^3.6.3",
|
|
30
|
-
"eslint-plugin-import": "^2.31.0",
|
|
31
|
-
"jest": "^28.1.2",
|
|
32
|
-
"jest-environment-jsdom": "^29.0.1",
|
|
33
|
-
"prettier": "^2.7.1",
|
|
34
|
-
"react": "17.0.2",
|
|
35
|
-
"react-intl": "5.25.1",
|
|
36
|
-
"rollup": "^2.75.7",
|
|
37
|
-
"rollup-plugin-dts": "^4.2.2",
|
|
38
|
-
"ts-jest": "^28.0.5",
|
|
39
|
-
"tslib": "^2.4.0",
|
|
40
|
-
"typescript": "^4.7.4",
|
|
41
|
-
"zod": "^3.22.4"
|
|
42
|
-
},
|
|
43
|
-
"dependencies": {
|
|
44
|
-
"@reduxjs/toolkit": "1.9.0",
|
|
20
|
+
"@changesets/cli": "^2.29.6",
|
|
21
|
+
"@reduxjs/toolkit": "^1.9.7",
|
|
22
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
23
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
24
|
+
"@rollup/plugin-typescript": "^12.1.4",
|
|
25
|
+
"@types/jest": "^30.0.0",
|
|
26
|
+
"@types/react": "^18.3.24",
|
|
45
27
|
"@types/uuid": "^10.0.0",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
29
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
30
|
+
"eslint": "^8.57.1",
|
|
31
|
+
"eslint-config-prettier": "^8.10.2",
|
|
32
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
33
|
+
"eslint-plugin-import": "^2.32.0",
|
|
34
|
+
"jamespot-user-api": "^1.2.37",
|
|
35
|
+
"jest": "^30.1.2",
|
|
36
|
+
"jest-environment-jsdom": "^30.1.2",
|
|
37
|
+
"prettier": "^3.6.2",
|
|
38
|
+
"react": "^18.3.1",
|
|
39
|
+
"react-intl": "7.1.11",
|
|
40
|
+
"react-redux": "^8.1.3",
|
|
41
|
+
"redux": "^4.2.1",
|
|
42
|
+
"rollup": "^4.50.0",
|
|
43
|
+
"rollup-plugin-dts": "^6.2.3",
|
|
44
|
+
"ts-jest": "^29.4.1",
|
|
45
|
+
"tslib": "^2.8.1",
|
|
46
|
+
"typescript": "^5.9.2",
|
|
47
|
+
"uuid": "^10.0.0",
|
|
48
|
+
"zod": "^3.25.76"
|
|
50
49
|
},
|
|
51
50
|
"engines": {
|
|
52
51
|
"node": ">=20.17.0 <21.0.0",
|
|
53
52
|
"pnpm": ">=9.9.0 <10"
|
|
54
53
|
},
|
|
55
54
|
"scripts": {
|
|
56
|
-
"build": "rollup -c",
|
|
57
|
-
"watch": "rollup -c -w",
|
|
55
|
+
"build": "rollup -c rollup.config.mjs",
|
|
56
|
+
"watch": "rollup -c rollup.config.mjs -w",
|
|
58
57
|
"format": "prettier --write --plugin-search-dir=. .",
|
|
59
58
|
"lint": "eslint --ignore-path .gitignore .",
|
|
60
59
|
"test": "jest --runInBand",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { createRequire } from 'module';
|
|
2
|
+
const require = createRequire(import.meta.url);
|
|
3
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
4
|
+
import typescript from '@rollup/plugin-typescript';
|
|
5
|
+
import dts from 'rollup-plugin-dts';
|
|
6
|
+
const pkg = require('./package.json');
|
|
7
|
+
import json from '@rollup/plugin-json';
|
|
8
|
+
|
|
9
|
+
export default [
|
|
10
|
+
{
|
|
11
|
+
input: 'src/index.ts',
|
|
12
|
+
output: [
|
|
13
|
+
{
|
|
14
|
+
file: pkg.main,
|
|
15
|
+
format: 'cjs',
|
|
16
|
+
sourcemap: true,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
file: pkg.module,
|
|
20
|
+
format: 'es',
|
|
21
|
+
sourcemap: true,
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
external: ['redux', '@reduxjs/toolkit', 'jamespot-user-api', 'uuid'],
|
|
25
|
+
plugins: [json(), commonjs(), typescript()],
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
input: 'src/index.ts',
|
|
29
|
+
output: {
|
|
30
|
+
file: pkg.types,
|
|
31
|
+
format: 'es',
|
|
32
|
+
},
|
|
33
|
+
external: ['redux', '@reduxjs/toolkit', 'jamespot-user-api', 'uuid'],
|
|
34
|
+
plugins: [dts(), json()],
|
|
35
|
+
},
|
|
36
|
+
];
|
package/tsconfig.json
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"lib": [
|
|
3
|
+
"lib": [
|
|
4
|
+
"dom",
|
|
5
|
+
"dom.iterable",
|
|
6
|
+
"esnext"
|
|
7
|
+
],
|
|
4
8
|
"outDir": "dist",
|
|
5
9
|
"removeComments": true,
|
|
6
|
-
"target": "
|
|
7
|
-
|
|
10
|
+
"target": "esnext",
|
|
8
11
|
// Module resolution
|
|
9
12
|
"baseUrl": "./", // Lets you set a base directory to resolve non-absolute module names.
|
|
10
13
|
"esModuleInterop": true, // fixes some issues TS originally had with the ES6 spec where TypeScript treats CommonJS/AMD/UMD modules similar to ES6 module
|
|
11
14
|
"moduleResolution": "node", // Pretty much always node for modern JS. Other option is "classic"
|
|
12
15
|
"paths": {}, // A series of entries which re-map imports to lookup locations relative to the baseUrl
|
|
13
|
-
|
|
16
|
+
"jsx": "react-jsx",
|
|
17
|
+
"allowSyntheticDefaultImports": true,
|
|
18
|
+
"skipLibCheck": true,
|
|
19
|
+
"forceConsistentCasingInFileNames": true,
|
|
14
20
|
// Source Map
|
|
15
21
|
"sourceMap": true, // enables the use of source maps for debuggers and error reporting etc
|
|
16
22
|
"sourceRoot": "/", // Specify the location where a debugger should locate TypeScript files instead of relative source locations.
|
|
17
|
-
|
|
18
23
|
// Strict Checks
|
|
19
24
|
"strict": true,
|
|
20
25
|
"allowUnreachableCode": false, // pick up dead code paths
|
|
@@ -36,6 +41,15 @@
|
|
|
36
41
|
"strictPropertyInitialization": true,
|
|
37
42
|
"useUnknownInCatchVariables": true
|
|
38
43
|
},
|
|
39
|
-
"include": [
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
"include": [
|
|
45
|
+
"src/**/*"
|
|
46
|
+
],
|
|
47
|
+
"exclude": [
|
|
48
|
+
".changeset",
|
|
49
|
+
".github",
|
|
50
|
+
"coverage",
|
|
51
|
+
"dist",
|
|
52
|
+
"node_modules",
|
|
53
|
+
"**/*.test.ts",
|
|
54
|
+
],
|
|
55
|
+
}
|