@f-o-t/config 1.0.3 → 1.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 FOT (F-O-T)
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.
package/dist/index.d.ts CHANGED
@@ -160,10 +160,13 @@ interface BiomeConfig {
160
160
  */
161
161
  declare function generateBiomeConfig(config: ResolvedFotConfig): BiomeConfig;
162
162
  /**
163
- * Package.json configuration
163
+ * Package.json configuration.
164
+ * Includes "import" condition so bundlers/Vite can resolve ESM entries
165
+ * under conditions like ["module", "browser", "import"].
164
166
  */
165
167
  interface PackageExport {
166
168
  types: string;
169
+ import: string;
167
170
  default: string;
168
171
  }
169
172
  /**
package/dist/index.js CHANGED
@@ -84,6 +84,7 @@ function generatePackageJson(libraryName, version, config, customDependencies) {
84
84
  const exports = {
85
85
  ".": {
86
86
  types: "./dist/index.d.ts",
87
+ import: "./dist/index.js",
87
88
  default: "./dist/index.js"
88
89
  }
89
90
  };
@@ -91,6 +92,7 @@ function generatePackageJson(libraryName, version, config, customDependencies) {
91
92
  if (plugin.enabled !== false) {
92
93
  exports[`./plugins/${plugin.name}`] = {
93
94
  types: `./dist/plugins/${plugin.name}/index.d.ts`,
95
+ import: `./dist/plugins/${plugin.name}/index.js`,
94
96
  default: `./dist/plugins/${plugin.name}/index.js`
95
97
  };
96
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@f-o-t/config",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Standardized configuration for F-O-T libraries",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -1,10 +1,13 @@
1
1
  import type { ResolvedFotConfig } from "../types";
2
2
 
3
3
  /**
4
- * Package.json export configuration
4
+ * Package.json export configuration.
5
+ * Includes "import" condition so bundlers/Vite can resolve ESM entries
6
+ * under conditions like ["module", "browser", "import"].
5
7
  */
6
8
  export interface PackageExport {
7
9
  types: string;
10
+ import: string;
8
11
  default: string;
9
12
  }
10
13
 
@@ -47,6 +50,7 @@ export function generatePackageJson(
47
50
  const exports: Record<string, PackageExport> = {
48
51
  ".": {
49
52
  types: "./dist/index.d.ts",
53
+ import: "./dist/index.js",
50
54
  default: "./dist/index.js",
51
55
  },
52
56
  };
@@ -56,6 +60,7 @@ export function generatePackageJson(
56
60
  if (plugin.enabled !== false) {
57
61
  exports[`./plugins/${plugin.name}`] = {
58
62
  types: `./dist/plugins/${plugin.name}/index.d.ts`,
63
+ import: `./dist/plugins/${plugin.name}/index.js`,
59
64
  default: `./dist/plugins/${plugin.name}/index.js`,
60
65
  };
61
66
  }
@@ -38,9 +38,7 @@ export function generateTSConfig(config: ResolvedFotConfig): TSConfig {
38
38
  // (e.g., @f-o-t/condition-evaluator) don't get type-checked in the main pass.
39
39
  // Plugin declarations are handled separately by the build system.
40
40
  const enabledPlugins = config.plugins.filter((p) => p.enabled !== false);
41
- const pluginExcludes = enabledPlugins.map(
42
- (p) => `src/plugins/${p.name}`,
43
- );
41
+ const pluginExcludes = enabledPlugins.map((p) => `src/plugins/${p.name}`);
44
42
 
45
43
  return {
46
44
  compilerOptions: {