@sklv-labs/ts-dev-configs 0.1.3 → 0.1.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sklv-labs/ts-dev-configs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Unified development configurations for TypeScript projects with support for React, NestJS, and more",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -98,4 +98,4 @@
|
|
|
98
98
|
"engines": {
|
|
99
99
|
"node": ">=24.0.0"
|
|
100
100
|
}
|
|
101
|
-
}
|
|
101
|
+
}
|
|
@@ -59,6 +59,8 @@ export default defineConfig([
|
|
|
59
59
|
'@typescript-eslint/no-non-null-assertion': 'warn',
|
|
60
60
|
'@typescript-eslint/interface-name-prefix': 'off',
|
|
61
61
|
|
|
62
|
+
'@darraghor/nestjs-typed/provided-injected-should-match-factory-parameters': 'off',
|
|
63
|
+
|
|
62
64
|
// General best practices
|
|
63
65
|
'no-console': ['warn', { allow: ['warn', 'error'] }],
|
|
64
66
|
'no-debugger': 'error',
|
package/configs/build/index.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck - Template file for consuming projects, peer dependencies not installed here
|
|
2
|
-
import { defineConfig } from 'vite';
|
|
3
|
-
import path from 'path';
|
|
4
|
-
import { fileURLToPath } from 'url';
|
|
5
|
-
|
|
6
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
7
|
-
|
|
8
|
-
export default defineConfig({
|
|
9
|
-
resolve: {
|
|
10
|
-
alias: {
|
|
11
|
-
'@': path.resolve(__dirname, '../../src'),
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
build: {
|
|
15
|
-
outDir: 'dist',
|
|
16
|
-
sourcemap: true,
|
|
17
|
-
minify: 'esbuild',
|
|
18
|
-
target: 'esnext',
|
|
19
|
-
rollupOptions: {
|
|
20
|
-
output: {
|
|
21
|
-
manualChunks: undefined,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
server: {
|
|
26
|
-
port: 3000,
|
|
27
|
-
open: false,
|
|
28
|
-
cors: true,
|
|
29
|
-
strictPort: false,
|
|
30
|
-
},
|
|
31
|
-
preview: {
|
|
32
|
-
port: 3000,
|
|
33
|
-
strictPort: false,
|
|
34
|
-
},
|
|
35
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
entry: './src/index.ts',
|
|
5
|
-
output: {
|
|
6
|
-
path: path.resolve(__dirname, '../../dist'),
|
|
7
|
-
filename: 'bundle.js',
|
|
8
|
-
clean: true,
|
|
9
|
-
},
|
|
10
|
-
resolve: {
|
|
11
|
-
extensions: ['.ts', '.tsx', '.js', '.jsx'],
|
|
12
|
-
alias: {
|
|
13
|
-
'@': path.resolve(__dirname, '../../src'),
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
module: {
|
|
17
|
-
rules: [
|
|
18
|
-
{
|
|
19
|
-
test: /\.tsx?$/,
|
|
20
|
-
use: 'ts-loader',
|
|
21
|
-
exclude: /node_modules/,
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
devtool: 'source-map',
|
|
26
|
-
mode: process.env.NODE_ENV || 'development',
|
|
27
|
-
};
|