@milaboratories/milaboratories.monetization-test.model 1.0.5 → 1.0.6

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/milaboratories.monetization-test.model",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Block model",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -11,26 +11,13 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "@platforma-sdk/block-tools": "",
14
- "typescript": "~5.5.4",
15
- "vite": "^5.4.11",
16
- "tsup": "~8.3.5"
17
- },
18
- "tsup": {
19
- "entry": [
20
- "src/index.ts"
21
- ],
22
- "splitting": false,
23
- "treeshake": true,
24
- "clean": true,
25
- "format": [
26
- "cjs",
27
- "esm"
28
- ],
29
- "dts": true,
30
- "minify": false,
31
- "sourcemap": true
14
+ "@milaboratories/build-configs": "",
15
+ "typescript": "~5.6.3",
16
+ "@milaboratories/ts-builder": "1.0.1",
17
+ "@milaboratories/ts-configs": "1.0.6"
32
18
  },
33
19
  "scripts": {
34
- "build": "tsup && vite build && block-tools build-model"
20
+ "build": "ts-builder build --target block-model && block-tools build-model",
21
+ "type-check": "ts-builder types --target block-model"
35
22
  }
36
23
  }
package/tsconfig.json CHANGED
@@ -1,16 +1,12 @@
1
1
  {
2
- "compilerOptions": {
3
- "target": "es2022",
4
- "module": "commonjs",
5
- "moduleResolution": "node",
6
- "esModuleInterop": true,
7
- "strict": true,
8
- "outDir": "./dist",
9
- "rootDir": "./src",
10
- "sourceMap": true,
11
- "declaration": true
12
- },
13
- "types": [],
14
- "include": ["src/**/*"],
15
- "exclude": ["node_modules", "dist"]
16
- }
2
+ "extends": "@milaboratories/ts-configs/tsconfig.node.json",
3
+ "include": [
4
+ "src/**/*"
5
+ ],
6
+ "exclude": [
7
+ "node_modules",
8
+ "dist",
9
+ "**/*.test.ts",
10
+ "**/*.spec.ts"
11
+ ]
12
+ }
package/dist/index.d.cts DELETED
@@ -1,27 +0,0 @@
1
- import * as _platforma_sdk_model from '@platforma-sdk/model';
2
- import { ImportFileHandle, InferOutputsType } from '@platforma-sdk/model';
3
-
4
- type Handle = {
5
- handle: ImportFileHandle | undefined;
6
- fileName: string;
7
- argName: string;
8
- options: string[];
9
- };
10
- type BlockArgs = {
11
- productKey: string;
12
- inputHandles: Handle[];
13
- shouldAddRunPerFile: boolean;
14
- __mnzDate: string;
15
- __mnzCanRun: boolean;
16
- };
17
- declare const model: _platforma_sdk_model.Platforma<BlockArgs, {
18
- __mnzInfo: _platforma_sdk_model.ValueOrErrors<{}>;
19
- token: _platforma_sdk_model.ValueOrErrors<string | undefined>;
20
- progresses: _platforma_sdk_model.ValueOrErrors<any>;
21
- mainProgresses: _platforma_sdk_model.ValueOrErrors<any>;
22
- }, {
23
- [x: string]: never;
24
- }, "/">;
25
- type BlockOutputs = InferOutputsType<typeof model>;
26
-
27
- export { type BlockArgs, type BlockOutputs, type Handle, model };
package/vite.config.mts DELETED
@@ -1,20 +0,0 @@
1
- import { defineConfig } from 'vite';
2
-
3
- export default defineConfig({
4
- build: {
5
- emptyOutDir: false,
6
- lib: {
7
- entry: 'src/index.ts',
8
- name: 'model',
9
- fileName: (format) => `my-lib.${format}.js`
10
- },
11
- minify: false,
12
- sourcemap: true,
13
- rollupOptions: {
14
- output: {
15
- format: 'iife',
16
- entryFileNames: 'bundle.js'
17
- }
18
- }
19
- }
20
- });