@coinmasters/e2e-staking-suite 1.11.4

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/tsconfig.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020", // Target ES2020 for modern JavaScript features
4
+ "module": "CommonJS", // CommonJS modules for Node.js
5
+ "lib": ["ES2020"], // Include type definitions for ES2020
6
+ "outDir": "./dist", // Output directory for compiled files
7
+ "rootDir": "./src", // Root directory for source files
8
+ "strict": true, // Enable all strict type-checking options
9
+ "esModuleInterop": true, // Enables compatibility with default imports from CommonJS modules
10
+ "skipLibCheck": true // Skip type checking for all declaration files (*.d.ts)
11
+ },
12
+ "include": ["src/**/*"], // Include all files in the src directory
13
+ "exclude": ["node_modules", "dist"] // Exclude node_modules and dist directories
14
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,19 @@
1
+ import thorswapViteConfig from '@internal/config';
2
+ import { resolve } from 'path';
3
+
4
+ import { name, peerDependencies } from './package.json';
5
+
6
+ const external = Object.keys(peerDependencies);
7
+
8
+ const viteConfig = thorswapViteConfig(name, {
9
+ build: {
10
+ lib: {
11
+ entry: resolve(__dirname, 'src/index.ts'),
12
+ },
13
+ rollupOptions: {
14
+ external,
15
+ },
16
+ },
17
+ });
18
+
19
+ export default viteConfig;