@colabo-utils/i-store 0.0.0-stage → 1.0.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/CHANGELOG.md +94 -0
- package/README.md +66 -2
- package/dist/esm/index.js +31 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/types/esbuild.d.mts +26 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/jest.config.d.ts +9 -0
- package/dist/types/lib/base.store.d.ts +3 -0
- package/dist/types/lib/params.d.ts +1 -0
- package/dist/types/lib/system.d.ts +27 -0
- package/dist/types/rollup.config.d.ts +25 -0
- package/package.json +88 -5
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# @colabo-utils/i-store-v1.0.0 (2026-12-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** ⬆️ ажуриране верзије зависности (ниво 4) ([db3dc45](https://github.com/Cha-OS/colabo/commit/db3dc451e3f5f01e7b74724870464c997e544106))
|
|
7
|
+
* **deps:** ⬆️ ажуриране верзије зависности (ниво 6) ([e1a2bed](https://github.com/Cha-OS/colabo/commit/e1a2bed2043b25ea02a73ddc960669e80a20464d))
|
|
8
|
+
* **deps:** ⬆️ ажуриране верзије зависности (ниво 6) ([2472581](https://github.com/Cha-OS/colabo/commit/2472581204a38363bd8f69c58d82028191c48d2a))
|
|
9
|
+
* **flow-core:** replace self-imports with relative paths for esbuild ([5cf0a72](https://github.com/Cha-OS/colabo/commit/5cf0a727eac0e1306b8949fe419b9fde0b8394fd))
|
|
10
|
+
* **store:** add explicit return type to createBaseStore for tsc declarations ([61f6ca2](https://github.com/Cha-OS/colabo/commit/61f6ca20846b4f13e75957a8ea1dbfcde146aa2a))
|
|
11
|
+
* **store:** exclude dist and node_modules from tsconfig compilation ([63e0f8c](https://github.com/Cha-OS/colabo/commit/63e0f8c1524bb9f92f40c0daa58b1adf033f9fb0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **@colabo-flow/sa-flowchestrator:** :sparkles: Adds flow instance features, fixes COARS, returns ServerData results and protects JSONP ([6eb45e8](https://github.com/Cha-OS/colabo/commit/6eb45e8e94cb5d8a6865887efe0065f3da4b5a83))
|
|
17
|
+
|
|
18
|
+
# [@colabo-utils/i-store-v1.4.3](https://github.com/Cha-OS/colabo/compare/@colabo-utils/i-store-v1.4.2...@colabo-utils/i-store-v1.4.3) (2025-02-28)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **@colabo:** :arrow_up: Bumped up versions ([b5f9e64](https://github.com/Cha-OS/colabo/commit/b5f9e64103f601f9fb1004c9392a3969c86d427f))
|
|
24
|
+
|
|
25
|
+
# [@colabo-utils/i-store-v1.4.2](https://github.com/Cha-OS/colabo/compare/@colabo-utils/i-store-v1.4.1...@colabo-utils/i-store-v1.4.2) (2025-02-27)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **@colabo:** :bug: Fixed support for releasing the current branch ([1901dcb](https://github.com/Cha-OS/colabo/commit/1901dcb70e8a16a1e78ac5ba36193ecb3f37faa0))
|
|
31
|
+
|
|
32
|
+
# [@colabo-utils/i-store-v1.4.1](https://github.com/Cha-OS/colabo/compare/@colabo-utils/i-store-v1.4.0...@colabo-utils/i-store-v1.4.1) (2025-02-27)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
|
|
37
|
+
* **@colabo:** :arrow_up: Bumped up versions ([3b11536](https://github.com/Cha-OS/colabo/commit/3b115365dc78a628c9a275e4d8e25cc74f63acca))
|
|
38
|
+
|
|
39
|
+
# [@colabo-utils/i-store-v1.4.0](https://github.com/Cha-OS/colabo/compare/@colabo-utils/i-store-v1.3.0...@colabo-utils/i-store-v1.4.0) (2025-02-27)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Bug Fixes
|
|
43
|
+
|
|
44
|
+
* **@colabo:** :bug: Fixes building backend ([0d2eb01](https://github.com/Cha-OS/colabo/commit/0d2eb018aaa461ac4c13613192e07f6e077f2663))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Features
|
|
48
|
+
|
|
49
|
+
* **@colabo:** :arrow_up: dependencies bumps ([4eaed2c](https://github.com/Cha-OS/colabo/commit/4eaed2c7d5ab1fc2fc0004f5bcff7bc43d8f4cfb))
|
|
50
|
+
|
|
51
|
+
# [@colabo-utils/i-store-v1.3.0](https://github.com/Cha-OS/colabo/compare/@colabo-utils/i-store-v1.2.1...@colabo-utils/i-store-v1.3.0) (2025-02-23)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Bug Fixes
|
|
55
|
+
|
|
56
|
+
* **@colabo:** :bug: Fixed some package dependencies on building puzzles ([5379329](https://github.com/Cha-OS/colabo/commit/537932925a0a34db485dbefd9511b8d002ae7ce8))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Features
|
|
60
|
+
|
|
61
|
+
* **@colabo:** :sparkles: Bumped new puzzle versions ([2c9c65d](https://github.com/Cha-OS/colabo/commit/2c9c65d542ca5ef6e75c548ae141df60261de2aa))
|
|
62
|
+
* **@colabo:** :sparkles: Bumped new puzzle versions ([469d8ce](https://github.com/Cha-OS/colabo/commit/469d8ce78ff0391e4e3264b93ebf9a2c88a8f810))
|
|
63
|
+
|
|
64
|
+
# [@colabo-utils/i-store-v1.2.1](https://github.com/Cha-OS/colabo/compare/@colabo-utils/i-store-v1.2.0...@colabo-utils/i-store-v1.2.1) (2025-02-19)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Bug Fixes
|
|
68
|
+
|
|
69
|
+
* :bug: Upgraded uuid and added package_rm_install_lock ([9b49179](https://github.com/Cha-OS/colabo/commit/9b49179641601d3034ffa84575d7f9c09018efb2))
|
|
70
|
+
* **@colabo:** :bug: Fixed release paths ([547e7df](https://github.com/Cha-OS/colabo/commit/547e7dfae3042bb0d1c84cd053fe29f2363d9169))
|
|
71
|
+
* **@colabo:** :bug: updated yarn.lock ([9be1a1b](https://github.com/Cha-OS/colabo/commit/9be1a1b04d6783bde14e2b4879276288a993ce58))
|
|
72
|
+
|
|
73
|
+
# [@colabo-utils/i-store-v1.2.0](https://github.com/Cha-OS/colabo/compare/@colabo-utils/i-store-v1.1.0...@colabo-utils/i-store-v1.2.0) (2025-02-18)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Bug Fixes
|
|
77
|
+
|
|
78
|
+
* **@colabo:** :bug: Fixed semantic-release and building without removed dists ([ff83469](https://github.com/Cha-OS/colabo/commit/ff834698c149978dcea7de1e8b3554792ffeb14a))
|
|
79
|
+
* **@colabo:** :bug: Fixed semantic-release and building without removed dists ([d1ae70a](https://github.com/Cha-OS/colabo/commit/d1ae70afb3c214a54261d0701be19aa4ff7de3ef))
|
|
80
|
+
* **@colabo:** :bug: Fixed semantic-release to read centralized config ([387e586](https://github.com/Cha-OS/colabo/commit/387e586bfb9e20d85749974e4eff59fe79ea792d))
|
|
81
|
+
* **@colabo:** :bug: Fixed tsconfig types folder ([ea15b9c](https://github.com/Cha-OS/colabo/commit/ea15b9c562136b353ac78f730fcb2ab53a220414))
|
|
82
|
+
* **@colabo:** :bug: Fixed tsconfig.json for builds to work ([920cd02](https://github.com/Cha-OS/colabo/commit/920cd02f7c1286a1046108445eae4608ed56bba3))
|
|
83
|
+
* **@colabo:** :bug: Fixed tsconfis for missing extends prop ([a32e995](https://github.com/Cha-OS/colabo/commit/a32e99552c6bfc5bc21635b61134dbc7b01f7690))
|
|
84
|
+
* **@colabo:** :bug: Fixed wrong path to typings ([594ae9c](https://github.com/Cha-OS/colabo/commit/594ae9c7b9fc69f8e863e9b7634050875306ddfe))
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### Features
|
|
88
|
+
|
|
89
|
+
* **@colabo:** :sparkles: Added live dependencies into NX nx.implicitDependencies ([ac76050](https://github.com/Cha-OS/colabo/commit/ac76050167e5cfb305b5c7fac8fa7079693b2f44))
|
|
90
|
+
* **@colabo:** :sparkles: Added new scripts to package.json ([5aed9ab](https://github.com/Cha-OS/colabo/commit/5aed9abe85632e73dfa4deff7dbcf8b3a412066c))
|
|
91
|
+
* **@colabo:** :sparkles: Added nx workflow scripts and esbuild config ([949eb30](https://github.com/Cha-OS/colabo/commit/949eb308cfcab9f031d969b7c4f21407989843f4))
|
|
92
|
+
* **@colabo:** :sparkles: Esbuild is puzzles builder ([ea34161](https://github.com/Cha-OS/colabo/commit/ea34161e30a1029b746833d7bb0a0e2f3aa825eb))
|
|
93
|
+
* **@colabo:** :sparkles: Fixed and improved esbuild scripts ([f7ca677](https://github.com/Cha-OS/colabo/commit/f7ca677fe70b45430f77f7c4ea008a58759a90ea))
|
|
94
|
+
* **@colabo:** :sparkles: Fixed exports in package.json and introduced options for esbuild building ([fd3b665](https://github.com/Cha-OS/colabo/commit/fd3b6658718d7ff469716dff1faf055ed7cf3f16))
|
package/README.md
CHANGED
|
@@ -1,3 +1,67 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Intro
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@colabo-utils/i-store` is a ***Colabo*** utils puzzle.
|
|
4
|
+
|
|
5
|
+
It provides various mechanisms for registering components into the rest of the Colabo.Space ecosystem.
|
|
6
|
+
|
|
7
|
+
## Register Module
|
|
8
|
+
|
|
9
|
+
Usage:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
/** mocked parameters, ids, names, etc */
|
|
13
|
+
const mockedId1 = "mock-id-with-24-chars-01";
|
|
14
|
+
const mockedName1 = "mockedName_01";
|
|
15
|
+
const mockedDesc1 = "mocked-desc-1";
|
|
16
|
+
// it is relative to this file
|
|
17
|
+
const mockupModuleName1 = "./module-test";
|
|
18
|
+
const mockupModuleName1Full = resolve(`${__dirname}/${mockupModuleName1}`);
|
|
19
|
+
|
|
20
|
+
const mockedEntryPoint1: IEntryPoint = {
|
|
21
|
+
id: mockedId1,
|
|
22
|
+
name: mockedName1,
|
|
23
|
+
description: mockedDesc1,
|
|
24
|
+
triggerCondition: undefined,
|
|
25
|
+
excludeOriginal: false,
|
|
26
|
+
importInfo: {
|
|
27
|
+
moduleName: mockupModuleName1Full,
|
|
28
|
+
exportName: "func1",
|
|
29
|
+
},
|
|
30
|
+
reference: undefined,
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const mockedId2 = "mock-id-with-24-chars-02";
|
|
34
|
+
const mockedName2 = "mockedName_02";
|
|
35
|
+
const mockedDesc2 = "mocked-desc-2";
|
|
36
|
+
|
|
37
|
+
const mockedEntryPoint2: IEntryPoint = {
|
|
38
|
+
id: mockedId2,
|
|
39
|
+
name: mockedName2,
|
|
40
|
+
description: mockedDesc2,
|
|
41
|
+
triggerCondition: undefined,
|
|
42
|
+
excludeOriginal: true,
|
|
43
|
+
reference: undefined,
|
|
44
|
+
importInfo: {
|
|
45
|
+
moduleName: mockupModuleName1Full,
|
|
46
|
+
exportName: "func2",
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
const register: IRegisterModule = {
|
|
50
|
+
name: "register-test",
|
|
51
|
+
description: "testing the module register support",
|
|
52
|
+
entryPoints: [mockedEntryPoint1, mockedEntryPoint2],
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const registerModule: RegisterModule = new RegisterModule();
|
|
56
|
+
const entryPointsNo = registerModule.register(register);
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
-----
|
|
60
|
+
|
|
61
|
+
This puzzle is automatically created with the [colabo tools](https://www.npmjs.com/package/@colabo/cli)
|
|
62
|
+
|
|
63
|
+
## Externally
|
|
64
|
+
|
|
65
|
+
1. create puzzle that will host the plugin (for example we host some of them in `@colabo-knalledge/b-core`)
|
|
66
|
+
2. create the `IRegisterModule` interface and populate it and place it in the `registerModules` property of the (backend) app config in the plugin section the module is for. For an example, please check `colabo/src/backend/apps/colabo-space/config/global.js` and inside: `globalSet.puzzles["@colabo-knalledge/b-core"].registerModules`
|
|
67
|
+
3. For `moduleName` in run-time test environment you can use puzzle name, like `@colabo-knalledge/b-core` and use it symbolically (symlink or tsconfig path referencing). For deployment this might not work (depends on your deployment), so you might want to build the puzzle, deploy it and provide path to it in the `moduleName` property
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// lib/base.store.ts
|
|
2
|
+
import { createStore } from "../../../../../../../../../node_modules/zustand/esm/vanilla.mjs";
|
|
3
|
+
function createBaseStore(init) {
|
|
4
|
+
const store = createStore(
|
|
5
|
+
(set, get) => ({
|
|
6
|
+
...init(set, get),
|
|
7
|
+
updateState: (partial) => set((state) => ({ ...state, ...partial }))
|
|
8
|
+
})
|
|
9
|
+
);
|
|
10
|
+
return store;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// lib/system.ts
|
|
14
|
+
var getPackagePath_ToBeInvited = (depth = 2) => {
|
|
15
|
+
try {
|
|
16
|
+
throw new Error("Finding function path");
|
|
17
|
+
} catch (error) {
|
|
18
|
+
const stackLines = error.stack.split("\n");
|
|
19
|
+
const callerLine = stackLines[depth] || "";
|
|
20
|
+
const match = callerLine.match(/\((.*?):\d+:\d+\)$/);
|
|
21
|
+
if (match) {
|
|
22
|
+
return match[1];
|
|
23
|
+
}
|
|
24
|
+
return "Could not find the file path";
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
createBaseStore,
|
|
29
|
+
getPackagePath_ToBeInvited
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../lib/base.store.ts", "../../lib/system.ts"],
|
|
4
|
+
"sourcesContent": ["import { createStore, StoreApi } from 'zustand/vanilla';\nimport { subscribeWithSelector } from 'zustand/middleware';\n\n/** General store generation function that gives access to set/get */\nexport function createBaseStore<T>(init: (set: any, get: any) => T): StoreApi<T> {\n\tconst store: StoreApi<T> = createStore<T>((set, get) => ({\n\t\t\t...init(set, get),\n\t\t\tupdateState: (partial: Partial<T>) => set((state) => ({ ...state, ...partial })),\n\t\t})\n\t);\n\treturn store;\n}", "/** This is a special utility function that provides a path of a calling function.\n * To work properly, it should be called from a function which path we want to get.\n * \n * An example of its usage could be:\n * \n * If we want to find out the real path of the `packageB.ts` inside the package `packageA.ts`:\n * \n * \n\t```ts\n\timport { __getPackagePath__ } from 'packageB';\n\n\tconsole.log(`packageA is located in: ${__getPackagePath__()}`);\n\t```\n\n\tWe should have in the `packageB.ts`:\n\n\t```ts\n\timport { getPackagePath_ToBeInvited } from '@colabo-utils/i-store';\n\n\texport const __getPackagePath = (): string => {\n\t\t\treturn getPackagePath_ToBeInvited();\n\t};\n\t```\n\n\t@param depth: number - how deep in the stack trace we should go to find the path of the calling function. Default is 2 which is equal for the function that calls this function.\n */\nexport const getPackagePath_ToBeInvited = ( depth: number = 2): string => {\n\ttry {\n\t\t// Intentionally throw an error to capture a stack trace\n\t\tthrow new Error('Finding function path');\n\t } catch (error: any) {\n\t\t// Parse the stack trace\n\t\t// const stackLines = error.stack.split('\\n').join(\"<NL>\");\n\t\tconst stackLines = error.stack.split('\\n');\n\t\tconst callerLine = stackLines[depth] || '';\n\t\t// return callerLine;\n\t\t// Extract file path info from the stack line\n\t\tconst match = callerLine.match(/\\((.*?):\\d+:\\d+\\)$/);\n\t\tif (match) {\n\t\t return match[1]; // This contains the file path\n\t\t}\n\t\treturn 'Could not find the file path';\n\t }\n};"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,mBAA6B;AAI/B,SAAS,gBAAmB,MAA8C;AAChF,QAAM,QAAqB;AAAA,IAAe,CAAC,KAAK,SAAS;AAAA,MACvD,GAAG,KAAK,KAAK,GAAG;AAAA,MAChB,aAAa,CAAC,YAAwB,IAAI,CAAC,WAAW,EAAE,GAAG,OAAO,GAAG,QAAQ,EAAE;AAAA,IAChF;AAAA,EACD;AACA,SAAO;AACR;;;ACeO,IAAM,6BAA6B,CAAE,QAAgB,MAAc;AACzE,MAAI;AAEH,UAAM,IAAI,MAAM,uBAAuB;AAAA,EACtC,SAAS,OAAY;AAGtB,UAAM,aAAa,MAAM,MAAM,MAAM,IAAI;AACzC,UAAM,aAAa,WAAW,KAAK,KAAK;AAGxC,UAAM,QAAQ,WAAW,MAAM,oBAAoB;AACnD,QAAI,OAAO;AACT,aAAO,MAAM,CAAC;AAAA,IAChB;AACA,WAAO;AAAA,EACN;AACH;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type IEsBuildConfigOptions = {
|
|
2
|
+
/**
|
|
3
|
+
* - Array of build formats (`cjs`, `esm`).
|
|
4
|
+
*/
|
|
5
|
+
format: Format[];
|
|
6
|
+
/**
|
|
7
|
+
* - Target platform (`node`, `browser`, `neutral`).
|
|
8
|
+
*/
|
|
9
|
+
platform: Platform;
|
|
10
|
+
/**
|
|
11
|
+
* - entry points for the build
|
|
12
|
+
*/
|
|
13
|
+
entryPoints: Record<string, string>;
|
|
14
|
+
};
|
|
15
|
+
type Format = string;
|
|
16
|
+
declare namespace Format {
|
|
17
|
+
let CJS: string;
|
|
18
|
+
let ESM: string;
|
|
19
|
+
}
|
|
20
|
+
type Platform = string;
|
|
21
|
+
declare namespace Platform {
|
|
22
|
+
let Neutral: string;
|
|
23
|
+
let Browser: string;
|
|
24
|
+
let Node: string;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export let moduleNameMapper: {
|
|
2
|
+
[key: string]: string | string[];
|
|
3
|
+
} | undefined;
|
|
4
|
+
export declare let moduleFileExtensions: string[];
|
|
5
|
+
export declare let moduleDirectories: string[];
|
|
6
|
+
export declare let transform: {
|
|
7
|
+
"^.+\\.tsx?$": string;
|
|
8
|
+
};
|
|
9
|
+
export declare let testRegex: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MODULE_NAME: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** This is a special utility function that provides a path of a calling function.
|
|
2
|
+
* To work properly, it should be called from a function which path we want to get.
|
|
3
|
+
*
|
|
4
|
+
* An example of its usage could be:
|
|
5
|
+
*
|
|
6
|
+
* If we want to find out the real path of the `packageB.ts` inside the package `packageA.ts`:
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
```ts
|
|
10
|
+
import { __getPackagePath__ } from 'packageB';
|
|
11
|
+
|
|
12
|
+
console.log(`packageA is located in: ${__getPackagePath__()}`);
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
We should have in the `packageB.ts`:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { getPackagePath_ToBeInvited } from '@colabo-utils/i-store';
|
|
19
|
+
|
|
20
|
+
export const __getPackagePath = (): string => {
|
|
21
|
+
return getPackagePath_ToBeInvited();
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
@param depth: number - how deep in the stack trace we should go to find the path of the calling function. Default is 2 which is equal for the function that calls this function.
|
|
26
|
+
*/
|
|
27
|
+
export declare const getPackagePath_ToBeInvited: (depth?: number) => string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default config;
|
|
2
|
+
declare const config: ({
|
|
3
|
+
input: string;
|
|
4
|
+
output: ({
|
|
5
|
+
file: any;
|
|
6
|
+
format: string;
|
|
7
|
+
sourcemap: boolean;
|
|
8
|
+
name: string;
|
|
9
|
+
} | {
|
|
10
|
+
file: any;
|
|
11
|
+
format: string;
|
|
12
|
+
sourcemap: boolean;
|
|
13
|
+
name?: undefined;
|
|
14
|
+
})[];
|
|
15
|
+
plugins: any[];
|
|
16
|
+
external?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
input: string;
|
|
19
|
+
output: {
|
|
20
|
+
file: string;
|
|
21
|
+
format: string;
|
|
22
|
+
}[];
|
|
23
|
+
external: RegExp[];
|
|
24
|
+
plugins: import("rollup").Plugin<any>[];
|
|
25
|
+
})[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,89 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@colabo-utils/i-store",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "An isomorphic part of any Colabo store",
|
|
5
|
+
"private": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/Cha-OS/colabo"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"clean": "rm -rf dist",
|
|
17
|
+
"build": "yarn clean && yarn build:esbuild",
|
|
18
|
+
"build:rollup": "rollup -c",
|
|
19
|
+
"build:esbuild": "node esbuild.mjs",
|
|
20
|
+
"test": "mocha --watch --watch-extensions ts --reporter mocha-clearscreen-reporter -r ts-node/register -r tsconfig-paths/register tests/*.test.ts",
|
|
21
|
+
"test_single": "mocha --watch --watch-extensions ts --reporter mocha-clearscreen-reporter -r ts-node/register -r tsconfig-paths/register",
|
|
22
|
+
"test_single_no_clear": "mocha --watch --watch-extensions ts -r ts-node/register -r tsconfig-paths/register",
|
|
23
|
+
"echo_name": "echo 'Paths: '; echo \"LERNA_ROOT_PATH: $LERNA_ROOT_PATH\"; echo \"LERNA_EXEC_PATH: $LERNA_EXEC_PATH\"; echo \"LERNA_PACKAGE_NAME: $LERNA_PACKAGE_NAME\"",
|
|
24
|
+
"install_deps": "yarn install",
|
|
25
|
+
"update_ver_deps": "tsx scripts/update-dependencies-versions.ts --package $LERNA_PACKAGE_NAME",
|
|
26
|
+
"deploy": "yarn install",
|
|
27
|
+
"_build": "yarn clean && yarn build:esbuild",
|
|
28
|
+
"package_build": "yarn clean && rm -rf dist && yarn build:esbuild",
|
|
29
|
+
"package_check": "tsx $COLABO_FOLDER/scripts/check-package.ts --configPath=\"$COLABO_FOLDER/scripts/config\"",
|
|
30
|
+
"package_pre_publish": "tsx $COLABO_FOLDER/scripts/pre-publish/single.ts",
|
|
31
|
+
"package_semantic_release": "npx --no-install semantic-release --no-ci --debug -e semantic-release-monorepo",
|
|
32
|
+
"package_post_publish": "tsx $COLABO_FOLDER/scripts/post-publish/single.ts",
|
|
33
|
+
"package_publish": "echo \"${npm_package_name}:package_publish ----- Publishing the package ----\"",
|
|
34
|
+
"package_update_dependencies_versions": "tsx $COLABO_FOLDER/scripts/update-dependencies-versions/single.ts",
|
|
35
|
+
"package_install": "yarn install --mutex file:/tmp/yarn-colabo.lock",
|
|
36
|
+
"package_rm_install_lock": "rm -f yarn.lock",
|
|
37
|
+
"package_install_dev": "yarn install --mutex file:/tmp/yarn-colabo.lock",
|
|
38
|
+
"package_build_dev": "yarn clean && rm -rf dist && yarn build:esbuild"
|
|
39
|
+
},
|
|
40
|
+
"main": "dist/cjs/index.js",
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@colabo-knalledge/i-core": "1.4.1",
|
|
43
|
+
"@colabo-utils/i-verify": "1.3.4",
|
|
44
|
+
"@colabo-utils/i-config": "1.6.1"
|
|
45
|
+
},
|
|
46
|
+
"peerDependenciesLocal": {},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@types/jest": "^24.0.19",
|
|
49
|
+
"jest": "^26.6.3",
|
|
50
|
+
"ts-jest": "^26.5.5",
|
|
51
|
+
"typescript": "^4.3.5",
|
|
52
|
+
"mocha-clearscreen-reporter": "^1.0.1"
|
|
53
|
+
},
|
|
54
|
+
"module": "dist/esm/index.js",
|
|
55
|
+
"exports": {
|
|
56
|
+
".": {
|
|
57
|
+
"types": "./dist/types/index.d.ts",
|
|
58
|
+
"import": "./dist/esm/index.js",
|
|
59
|
+
"require": "./dist/cjs/index.js"
|
|
60
|
+
},
|
|
61
|
+
"./package.json": "./package.json"
|
|
62
|
+
},
|
|
63
|
+
"types": "dist/types/index.d.ts",
|
|
64
|
+
"typings": "dist/types/index.d.ts",
|
|
65
|
+
"files": [
|
|
66
|
+
"dist",
|
|
67
|
+
"README.md",
|
|
68
|
+
"LICENSE",
|
|
69
|
+
"CHANGELOG.md"
|
|
70
|
+
],
|
|
71
|
+
"liveDependencies": {
|
|
72
|
+
"@colabo-knalledge/i-core": "1.4.1",
|
|
73
|
+
"@colabo-utils/i-verify": "1.3.4",
|
|
74
|
+
"@colabo-utils/i-config": "1.6.1"
|
|
75
|
+
},
|
|
76
|
+
"nx": {
|
|
77
|
+
"implicitDependencies": [
|
|
78
|
+
"@colabo-knalledge/i-core",
|
|
79
|
+
"@colabo-utils/i-verify",
|
|
80
|
+
"@colabo-utils/i-config"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"build": {
|
|
84
|
+
"format": [
|
|
85
|
+
"esm"
|
|
86
|
+
],
|
|
87
|
+
"platform": "node"
|
|
88
|
+
}
|
|
89
|
+
}
|