@sunfall/arc-tsrx 0.1.0-alpha.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Andrew Lee
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,26 @@
1
+ import tsrxSolid from "@tsrx/vite-plugin-solid";
2
+ import solid from "vite-plugin-solid";
3
+ import type { PluginOption } from "vite";
4
+ /** Options for the Sunfall Arc TSRX/Solid Vite preset. */
5
+ export interface SunfallArcTsrxOptions {
6
+ /** Options passed through to `@tsrx/vite-plugin-solid`. */
7
+ readonly tsrx?: Parameters<typeof tsrxSolid>[0];
8
+ /** Options passed through to `vite-plugin-solid`. */
9
+ readonly solid?: Parameters<typeof solid>[0];
10
+ /** Vite dev-server dependency pre-bundling defaults used by the preset. */
11
+ readonly optimizeDeps?: {
12
+ /** Disable Vite dev-server dependency discovery. Defaults to `true` for TSRX projects. */
13
+ readonly noDiscovery?: boolean;
14
+ };
15
+ }
16
+ /**
17
+ * Creates the standard Sunfall Arc TSRX/Solid Vite plugin chain.
18
+ *
19
+ * The preset installs a dev-server dependency-discovery policy plugin, then
20
+ * TSRX's Solid transform, then `vite-plugin-solid` in the order expected by
21
+ * starters.
22
+ */
23
+ export declare const sunfallArcTsrx: (options?: SunfallArcTsrxOptions) => PluginOption[];
24
+ /** Default export for `plugins: sunfallArcTsrx()` style Vite configs. */
25
+ export default sunfallArcTsrx;
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEzC,0DAA0D;AAC1D,MAAM,WAAW,qBAAqB;IACpC,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,qDAAqD;IACrD,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,2EAA2E;IAC3E,QAAQ,CAAC,YAAY,CAAC,EAAE;QACtB,0FAA0F;QAC1F,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC;CACH;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,aAAa,qBAAqB,KAAQ,YAAY,EAoBhF,CAAC;AAEF,yEAAyE;eAC1D,cAAc"}
package/dist/index.js ADDED
@@ -0,0 +1,32 @@
1
+ import tsrxSolid from "@tsrx/vite-plugin-solid";
2
+ import solid from "vite-plugin-solid";
3
+ /**
4
+ * Creates the standard Sunfall Arc TSRX/Solid Vite plugin chain.
5
+ *
6
+ * The preset installs a dev-server dependency-discovery policy plugin, then
7
+ * TSRX's Solid transform, then `vite-plugin-solid` in the order expected by
8
+ * starters.
9
+ */
10
+ export const sunfallArcTsrx = (options = {}) => {
11
+ const noDiscovery = options.optimizeDeps?.noDiscovery ?? true;
12
+ return [
13
+ {
14
+ name: "sunfall-arc-tsrx-deps",
15
+ apply: "serve",
16
+ config() {
17
+ return noDiscovery
18
+ ? {
19
+ optimizeDeps: {
20
+ noDiscovery: true,
21
+ },
22
+ }
23
+ : {};
24
+ },
25
+ },
26
+ tsrxSolid(options.tsrx),
27
+ solid(options.solid),
28
+ ];
29
+ };
30
+ /** Default export for `plugins: sunfallArcTsrx()` style Vite configs. */
31
+ export default sunfallArcTsrx;
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAgBtC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAO,GAA0B,EAAE,EAAkB,EAAE;IACpF,MAAM,WAAW,GAAG,OAAO,CAAC,YAAY,EAAE,WAAW,IAAI,IAAI,CAAC;IAE9D,OAAO;QACL;YACE,IAAI,EAAE,uBAAuB;YAC7B,KAAK,EAAE,OAAO;YACd,MAAM;gBACJ,OAAO,WAAW;oBAChB,CAAC,CAAC;wBACE,YAAY,EAAE;4BACZ,WAAW,EAAE,IAAI;yBAClB;qBACF;oBACH,CAAC,CAAC,EAAE,CAAC;YACT,CAAC;SACF;QACD,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC;QACvB,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;KACrB,CAAC;AACJ,CAAC,CAAC;AAEF,yEAAyE;AACzE,eAAe,cAAc,CAAC"}
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@sunfall/arc-tsrx",
3
+ "version": "0.1.0-alpha.0",
4
+ "description": "TSRX and Solid Vite preset for Sunfall Arc apps and starters.",
5
+ "keywords": [
6
+ "framework",
7
+ "solid",
8
+ "tsrx",
9
+ "typescript",
10
+ "vite"
11
+ ],
12
+ "homepage": "https://github.com/sunfall-labs/arc#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/sunfall-labs/arc/issues"
15
+ },
16
+ "license": "MIT",
17
+ "author": "Andrew Lee",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/sunfall-labs/arc.git",
21
+ "directory": "packages/tsrx"
22
+ },
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "type": "module",
27
+ "sideEffects": false,
28
+ "main": "./dist/index.js",
29
+ "types": "./dist/index.d.ts",
30
+ "exports": {
31
+ ".": {
32
+ "types": "./dist/index.d.ts",
33
+ "default": "./dist/index.js"
34
+ }
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "dependencies": {
40
+ "@tsrx/vite-plugin-solid": "0.0.37",
41
+ "vite-plugin-solid": "^2.11.12"
42
+ },
43
+ "peerDependencies": {
44
+ "vite": "*"
45
+ },
46
+ "scripts": {
47
+ "build": "rm -rf dist .tsbuildinfo && tsgo -p tsconfig.json",
48
+ "typecheck": "tsgo -p tsconfig.json --pretty false --noEmit"
49
+ }
50
+ }