@kbach/native 0.1.3 → 0.1.5

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/README.md CHANGED
@@ -27,7 +27,7 @@ export default function Screen() {
27
27
 
28
28
  ## Install
29
29
 
30
- ```bash
30
+ ```
31
31
  npm install @kbach/native
32
32
  ```
33
33
 
@@ -37,14 +37,14 @@ That's it. Core engine, Babel plugin, and Metro helpers are bundled — nothing
37
37
 
38
38
  ### 1. babel.config.js
39
39
 
40
- ```js
40
+ ```
41
41
  const { createKbachConfig } = require('@kbach/native');
42
42
  module.exports = createKbachConfig();
43
43
  ```
44
44
 
45
45
  If you need to keep an existing Babel config:
46
46
 
47
- ```js
47
+ ```
48
48
  const { withKbachBabel } = require('@kbach/native');
49
49
 
50
50
  module.exports = withKbachBabel({
@@ -55,7 +55,7 @@ module.exports = withKbachBabel({
55
55
 
56
56
  ### 2. metro.config.js
57
57
 
58
- ```js
58
+ ```
59
59
  const { getDefaultConfig } = require('expo/metro-config');
60
60
  const { withKbach } = require('@kbach/native');
61
61
 
@@ -79,7 +79,7 @@ export default function App() {
79
79
 
80
80
  After changing `babel.config.js` or `metro.config.js`, clear the Metro cache:
81
81
 
82
- ```bash
82
+ ```
83
83
  npx expo start --clear
84
84
  ```
85
85
 
@@ -267,7 +267,7 @@ Available families: slate, gray, zinc, neutral, stone, red, orange, amber, yello
267
267
 
268
268
  ## Configuration
269
269
 
270
- ```js
270
+ ```
271
271
  // kbach.config.js
272
272
  module.exports = {
273
273
  darkMode: 'attribute', // 'attribute' | 'class' | 'media'
package/dist/index.js CHANGED
@@ -65,7 +65,7 @@ function withKbachBabel(babelConfig, options = {}) {
65
65
  attributes = ["tw", "className"],
66
66
  debug = false
67
67
  } = options;
68
- const pluginEntry = ["babel-plugin-kbach", { configFile, attributes, debug }];
68
+ const pluginEntry = ["babel-plugin-kbach", { configFile, attributes, debug, jsxRuntime: false }];
69
69
  const presets = (babelConfig.presets ?? []).map((preset) => {
70
70
  const [name, presetOpts = {}] = Array.isArray(preset) ? preset : [preset, {}];
71
71
  if (name === "babel-preset-expo" || name === "@babel/preset-react" || typeof name === "string" && name.includes("react")) {
package/dist/index.mjs CHANGED
@@ -38,7 +38,7 @@ function withKbachBabel(babelConfig, options = {}) {
38
38
  attributes = ["tw", "className"],
39
39
  debug = false
40
40
  } = options;
41
- const pluginEntry = ["babel-plugin-kbach", { configFile, attributes, debug }];
41
+ const pluginEntry = ["babel-plugin-kbach", { configFile, attributes, debug, jsxRuntime: false }];
42
42
  const presets = (babelConfig.presets ?? []).map((preset) => {
43
43
  const [name, presetOpts = {}] = Array.isArray(preset) ? preset : [preset, {}];
44
44
  if (name === "babel-preset-expo" || name === "@babel/preset-react" || typeof name === "string" && name.includes("react")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kbach/native",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Single-package Kbach install for React Native and Expo — includes core, components, Babel plugin, and Metro config",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./dist/index.js",
@@ -34,8 +34,8 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@kbach/core": "0.1.0",
37
- "@kbach/react": "0.1.3",
38
- "babel-plugin-kbach": "0.1.0"
37
+ "@kbach/react": "0.1.4",
38
+ "babel-plugin-kbach": "0.1.2"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/react": "^19.2.0",