cleanstrategytypes 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.
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=bundle.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=bundle.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,5 @@
1
+ export interface IVote {
2
+ id: string;
3
+ name: string;
4
+ count: number;
5
+ }
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "cleanstrategytypes",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "build": "rollup -c",
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC",
11
+ "description": "",
12
+ "devDependencies": {
13
+ "@rollup/plugin-typescript": "^12.1.0",
14
+ "rollup": "^2.79.2",
15
+ "rollup-plugin-terser": "^7.0.2",
16
+ "tslib": "^2.7.0",
17
+ "typescript": "^5.6.3"
18
+ }
19
+ }
@@ -0,0 +1,25 @@
1
+ import typescript from "@rollup/plugin-typescript";
2
+ import { terser } from "rollup-plugin-terser";
3
+
4
+ export default {
5
+ input: "src/index.ts", // Wejściowy plik TypeScript
6
+ output: [
7
+ {
8
+ file: "dist/bundle.cjs.js",
9
+ format: "cjs", // CommonJS
10
+ sourcemap: true,
11
+ },
12
+ {
13
+ file: "dist/bundle.esm.js",
14
+ format: "esm", // ECMAScript Module
15
+ sourcemap: true,
16
+ },
17
+ {
18
+ file: "dist/bundle.min.js",
19
+ format: "iife", // IIFE (dla przeglądarek)
20
+ name: "MyLibrary",
21
+ plugins: [terser()],
22
+ },
23
+ ],
24
+ plugins: [typescript()],
25
+ };
package/src/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ export interface IVote {
2
+ id: string;
3
+ name: string;
4
+ count: number;
5
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES6",
4
+ "module": "ES6",
5
+ "declaration": true,
6
+ "outDir": "dist",
7
+ "strict": true
8
+ },
9
+ "include": ["src"]
10
+ }