pixelize-design-library 1.0.14 → 1.0.16

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": "pixelize-design-library",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "private": false,
5
5
  "main": "dist/index.ts",
6
6
  "module": "dist/index.js",
package/tsconfig.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "module": "CommonJS",
5
+ "lib": [
6
+ "dom",
7
+ "dom.iterable",
8
+ "esnext"
9
+ ],
10
+ "allowJs": true,
11
+ "skipLibCheck": true,
12
+ "esModuleInterop": true,
13
+ "allowSyntheticDefaultImports": true,
14
+ "strict": true,
15
+ "forceConsistentCasingInFileNames": true,
16
+ "noFallthroughCasesInSwitch": true,
17
+ "moduleResolution": "node",
18
+ "resolveJsonModule": true,
19
+ "isolatedModules": true,
20
+ "noEmit": false,
21
+ "jsx": "react",
22
+ "outDir": "./dist",
23
+ "typeRoots": [
24
+ "./node_modules/@types",
25
+ "./src/types"
26
+ ],
27
+ "declaration": true,
28
+ },
29
+ "include": [
30
+ "src"
31
+ ]
32
+ }
@@ -0,0 +1,48 @@
1
+ const path = require('path');
2
+
3
+ module.exports = {
4
+ // Entry point of your application
5
+ entry: './src/index.ts',
6
+ // Development mode for better debugging
7
+ mode: 'development',
8
+ module: {
9
+ rules: [
10
+ // TypeScript loader
11
+ {
12
+ test: /\.tsx?$/,
13
+ use: 'ts-loader',
14
+ exclude: /node_modules/,
15
+ },
16
+ // CSS loader
17
+ {
18
+ test: /\.css$/,
19
+ use: ['style-loader', 'css-loader'],
20
+ },
21
+ // File loader for image assets
22
+ {
23
+ test: /\.(png|svg|jpg|jpeg|gif)$/i,
24
+ type: 'asset/resource',
25
+ },
26
+ ],
27
+ },
28
+ resolve: {
29
+ // Add `.ts` and `.tsx` as resolvable extensions.
30
+ extensions: ['.tsx', '.ts', '.js'],
31
+ },
32
+ output: {
33
+ // Output directory
34
+ path: path.resolve(__dirname, 'dist'),
35
+ // Output file name
36
+ filename: 'bundle.js',
37
+ },
38
+ // Source maps for debugging
39
+ devtool: 'inline-source-map',
40
+ // Dev server configuration
41
+ devServer: {
42
+ static: {
43
+ directory: path.join(__dirname, 'public'),
44
+ },
45
+ compress: true,
46
+ port: 9000,
47
+ },
48
+ };