@remaginer-io/rm-configs 0.1.1 → 0.3.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.
- package/eslint/index.mjs +30 -0
- package/package.json +44 -36
- package/tsup/index.d.ts +5 -0
- package/tsup/index.js +18 -0
- package/tsup/index.mjs +14 -0
- package/typescript/next.json +18 -0
- package/typescript/node-next.json +11 -0
- package/vite/index.d.ts +14 -0
- package/vite/index.mjs +61 -0
- package/eslint-config/index.mjs +0 -14
- package/eslint-config/node_modules/.bin/acorn +0 -17
- package/eslint-config/node_modules/.bin/eslint +0 -21
- package/eslint-config/node_modules/.bin/eslint-config-prettier +0 -21
- package/eslint-config/node_modules/.bin/jiti +0 -21
- package/eslint-config/node_modules/.bin/tsc +0 -21
- package/eslint-config/node_modules/.bin/tsserver +0 -21
- package/vitest-config/index.d.ts +0 -4
- package/vitest-config/index.js +0 -10
- package/vitest-config/node_modules/.bin/jiti +0 -21
- package/vitest-config/node_modules/.bin/vite +0 -21
- package/vitest-config/node_modules/.bin/vitest +0 -21
- package/vitest-config/packages.d.ts +0 -4
- package/vitest-config/packages.js +0 -22
- /package/{eslint-config → eslint}/index.js +0 -0
- /package/{typescript-config → typescript}/base.json +0 -0
- /package/{typescript-config → typescript}/module.json +0 -0
- /package/{typescript-config → typescript}/react-library.json +0 -0
- /package/{typescript-config → typescript}/vite.json +0 -0
package/eslint/index.mjs
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import eslint from '@eslint/js';
|
|
2
|
+
import globals from 'globals';
|
|
3
|
+
import tseslint from 'typescript-eslint';
|
|
4
|
+
import prettier from 'eslint-config-prettier';
|
|
5
|
+
|
|
6
|
+
export default [
|
|
7
|
+
{
|
|
8
|
+
ignores: [
|
|
9
|
+
'**/.next/**',
|
|
10
|
+
'**/build/**',
|
|
11
|
+
'**/dist/**',
|
|
12
|
+
'**/node_modules/**',
|
|
13
|
+
'**/out/**',
|
|
14
|
+
'**/storybook-static/**',
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
languageOptions: {
|
|
19
|
+
globals: globals.node,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
eslint.configs.recommended,
|
|
23
|
+
...tseslint.configs.recommended,
|
|
24
|
+
prettier,
|
|
25
|
+
{
|
|
26
|
+
rules: {
|
|
27
|
+
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
];
|
package/package.json
CHANGED
|
@@ -1,37 +1,45 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
2
|
+
"name": "@remaginer-io/rm-configs",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Shared TypeScript, ESLint, and test configuration for Remaginer repositories.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"files": [
|
|
8
|
+
"typescript/",
|
|
9
|
+
"eslint/",
|
|
10
|
+
"tsup/",
|
|
11
|
+
"vite/",
|
|
12
|
+
"vitest/"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
"./eslint": "./eslint/index.mjs",
|
|
16
|
+
"./tsup": {
|
|
17
|
+
"types": "./tsup/index.d.ts",
|
|
18
|
+
"import": "./tsup/index.mjs",
|
|
19
|
+
"require": "./tsup/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./vite": {
|
|
22
|
+
"types": "./vite/index.d.ts",
|
|
23
|
+
"import": "./vite/index.mjs"
|
|
24
|
+
},
|
|
25
|
+
"./typescript/base": "./typescript/base.json",
|
|
26
|
+
"./typescript/module": "./typescript/module.json",
|
|
27
|
+
"./typescript/node-next": "./typescript/node-next.json",
|
|
28
|
+
"./typescript/next": "./typescript/next.json",
|
|
29
|
+
"./typescript/vite": "./typescript/vite.json",
|
|
30
|
+
"./typescript/react-library": "./typescript/react-library.json"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "restricted"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@eslint/js": "9.39.2",
|
|
37
|
+
"eslint": "9.39.2",
|
|
38
|
+
"eslint-config-prettier": "10.1.8",
|
|
39
|
+
"globals": "16.5.0",
|
|
40
|
+
"typescript-eslint": "8.67.0"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=20"
|
|
44
|
+
}
|
|
45
|
+
}
|
package/tsup/index.d.ts
ADDED
package/tsup/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function createReactLibraryConfig({
|
|
2
|
+
entry = 'src/index.tsx',
|
|
3
|
+
useClient = false,
|
|
4
|
+
...overrides
|
|
5
|
+
} = {}) {
|
|
6
|
+
return {
|
|
7
|
+
entry,
|
|
8
|
+
format: ['cjs', 'esm'],
|
|
9
|
+
dts: true,
|
|
10
|
+
external: ['react', 'react-dom'],
|
|
11
|
+
...(useClient ? { banner: { js: "'use client'" } } : {}),
|
|
12
|
+
...overrides,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
module.exports = {
|
|
17
|
+
createReactLibraryConfig,
|
|
18
|
+
};
|
package/tsup/index.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function createReactLibraryConfig({
|
|
2
|
+
entry = 'src/index.tsx',
|
|
3
|
+
useClient = false,
|
|
4
|
+
...overrides
|
|
5
|
+
} = {}) {
|
|
6
|
+
return {
|
|
7
|
+
entry,
|
|
8
|
+
format: ['cjs', 'esm'],
|
|
9
|
+
dts: true,
|
|
10
|
+
external: ['react', 'react-dom'],
|
|
11
|
+
...(useClient ? { banner: { js: "'use client'" } } : {}),
|
|
12
|
+
...overrides,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"extends": "./base.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"declaration": false,
|
|
7
|
+
"declarationMap": false,
|
|
8
|
+
"incremental": true,
|
|
9
|
+
"jsx": "preserve",
|
|
10
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
11
|
+
"module": "ESNext",
|
|
12
|
+
"moduleResolution": "Bundler",
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"target": "ES2020"
|
|
16
|
+
},
|
|
17
|
+
"exclude": ["node_modules"]
|
|
18
|
+
}
|
package/vite/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InlineConfig } from 'vite';
|
|
2
|
+
|
|
3
|
+
export interface ViteConfigOptions {
|
|
4
|
+
/** Source directory for path alias @ (default: './src') */
|
|
5
|
+
srcDir?: string;
|
|
6
|
+
/** Override any config property */
|
|
7
|
+
overrides?: Partial<InlineConfig>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Creates a standardized Vite config for React + Router + Tailwind applications.
|
|
12
|
+
* Includes: React, TanStack Router, Tailwind CSS, Vitest with browser support.
|
|
13
|
+
*/
|
|
14
|
+
export function createViteConfig(options?: ViteConfigOptions): InlineConfig;
|
package/vite/index.mjs
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { defineConfig } from 'vite';
|
|
3
|
+
import react from '@vitejs/plugin-react';
|
|
4
|
+
import tailwindcss from '@tailwindcss/vite';
|
|
5
|
+
import { tanstackRouter } from '@tanstack/router-plugin/vite';
|
|
6
|
+
import { playwright } from '@vitest/browser-playwright';
|
|
7
|
+
import { fileURLToPath } from 'url';
|
|
8
|
+
|
|
9
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Creates a standardized Vite config for React + Router + Tailwind applications.
|
|
13
|
+
* Standard setup includes:
|
|
14
|
+
* - React plugin
|
|
15
|
+
* - TanStack Router with code splitting
|
|
16
|
+
* - Tailwind CSS
|
|
17
|
+
* - Vitest with browser support (Playwright)
|
|
18
|
+
* - Path alias: @ → ./src
|
|
19
|
+
*
|
|
20
|
+
* @param {Object} options - Configuration options
|
|
21
|
+
* @param {string} options.srcDir - Source directory for alias (default: './src')
|
|
22
|
+
* @param {Object} options.overrides - Override any config property
|
|
23
|
+
* @returns {Object} Vite config object
|
|
24
|
+
*/
|
|
25
|
+
export function createViteConfig({ srcDir = './src', overrides = {} } = {}) {
|
|
26
|
+
return defineConfig({
|
|
27
|
+
plugins: [
|
|
28
|
+
tanstackRouter({
|
|
29
|
+
target: 'react',
|
|
30
|
+
autoCodeSplitting: true,
|
|
31
|
+
}),
|
|
32
|
+
react(),
|
|
33
|
+
tailwindcss(),
|
|
34
|
+
],
|
|
35
|
+
resolve: {
|
|
36
|
+
alias: {
|
|
37
|
+
'@': path.resolve(srcDir),
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
test: {
|
|
41
|
+
silent: 'passed-only',
|
|
42
|
+
unstubEnvs: true,
|
|
43
|
+
browser: {
|
|
44
|
+
enabled: true,
|
|
45
|
+
provider: playwright(),
|
|
46
|
+
instances: [{ browser: 'chromium' }],
|
|
47
|
+
},
|
|
48
|
+
coverage: {
|
|
49
|
+
exclude: [
|
|
50
|
+
'src/components/ui/**',
|
|
51
|
+
'src/assets/**',
|
|
52
|
+
'src/tanstack-table.d.ts',
|
|
53
|
+
'src/routeTree.gen.ts',
|
|
54
|
+
'src/test-utils/**',
|
|
55
|
+
'src/routes/**',
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
...overrides,
|
|
60
|
+
});
|
|
61
|
+
}
|
package/eslint-config/index.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import eslint from "@eslint/js";
|
|
2
|
-
import tseslint from "typescript-eslint";
|
|
3
|
-
import prettier from "eslint-config-prettier";
|
|
4
|
-
|
|
5
|
-
export default [
|
|
6
|
-
eslint.configs.recommended,
|
|
7
|
-
...tseslint.configs.recommended,
|
|
8
|
-
prettier,
|
|
9
|
-
{
|
|
10
|
-
rules: {
|
|
11
|
-
"@typescript-eslint/no-non-null-assertion": "off",
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
-
esac
|
|
7
|
-
|
|
8
|
-
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/bin/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/acorn@8.15.0/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules"
|
|
10
|
-
else
|
|
11
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/bin/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/acorn@8.15.0/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
-
fi
|
|
13
|
-
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/bin/acorn" "$@"
|
|
15
|
-
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/bin/acorn" "$@"
|
|
17
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules/eslint/bin/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules/eslint/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules/eslint/bin/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules/eslint/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/eslint@9.39.2_jiti@2.6.1/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../eslint/bin/eslint.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/eslint-config-prettier@10.1.8_eslint@9.39.2_jiti@2.6.1_/node_modules/eslint-config-prettier/bin/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/eslint-config-prettier@10.1.8_eslint@9.39.2_jiti@2.6.1_/node_modules/eslint-config-prettier/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/eslint-config-prettier@10.1.8_eslint@9.39.2_jiti@2.6.1_/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/eslint-config-prettier@10.1.8_eslint@9.39.2_jiti@2.6.1_/node_modules/eslint-config-prettier/bin/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/eslint-config-prettier@10.1.8_eslint@9.39.2_jiti@2.6.1_/node_modules/eslint-config-prettier/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/eslint-config-prettier@10.1.8_eslint@9.39.2_jiti@2.6.1_/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../eslint-config-prettier/bin/cli.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../eslint-config-prettier/bin/cli.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/jiti@2.6.1/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/jiti@2.6.1/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/bin/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/typescript@5.5.4/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/bin/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/typescript@5.5.4/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/bin/tsc" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/bin/tsc" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/bin/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/typescript@5.5.4/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/bin/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/typescript@5.5.4/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/bin/tsserver" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../../../../node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/bin/tsserver" "$@"
|
|
21
|
-
fi
|
package/vitest-config/index.d.ts
DELETED
package/vitest-config/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/jiti@2.6.1/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/jiti@2.6.1/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../../../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/vite@7.3.0_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2/node_modules/vite/bin/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/vite@7.3.0_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2/node_modules/vite/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/vite@7.3.0_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/vite@7.3.0_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2/node_modules/vite/bin/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/vite@7.3.0_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2/node_modules/vite/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/vite@7.3.0_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/vite@7.3.0_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2/node_modules/vite/bin/vite.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../../../../node_modules/.pnpm/vite@7.3.0_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2/node_modules/vite/bin/vite.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/vitest@4.0.16_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2/node_modules/vitest/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/vitest@4.0.16_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/vitest@4.0.16_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2/node_modules/vitest/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/vitest@4.0.16_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2/node_modules:/Users/mmm/Desktop/remaginer-io/rm/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../vitest/vitest.mjs" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../vitest/vitest.mjs" "$@"
|
|
21
|
-
fi
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "vitest/config";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Base vitest config for packages
|
|
5
|
-
*
|
|
6
|
-
* Usage in package vitest.config.ts:
|
|
7
|
-
* import config from "@remaginer-io/rm-vitest-config/packages";
|
|
8
|
-
* export default config;
|
|
9
|
-
*/
|
|
10
|
-
export default defineConfig({
|
|
11
|
-
test: {
|
|
12
|
-
globals: true,
|
|
13
|
-
environment: "node",
|
|
14
|
-
testTimeout: 30_000,
|
|
15
|
-
hookTimeout: 10_000,
|
|
16
|
-
include: ["__tests__/**/*.test.ts", "src/**/*.test.ts"],
|
|
17
|
-
sequence: {
|
|
18
|
-
shuffle: false,
|
|
19
|
-
concurrent: false,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|