@kbach/native 0.1.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/dist/index.d.mts +63 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.js +103 -0
- package/dist/index.mjs +74 -0
- package/dist/jsx-dev-runtime.d.mts +2 -0
- package/dist/jsx-dev-runtime.d.ts +2 -0
- package/dist/jsx-dev-runtime.js +32 -0
- package/dist/jsx-dev-runtime.mjs +6 -0
- package/dist/jsx-runtime.d.mts +1 -0
- package/dist/jsx-runtime.d.ts +1 -0
- package/dist/jsx-runtime.js +34 -0
- package/dist/jsx-runtime.mjs +7 -0
- package/package.json +58 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export * from '@kbach/react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Metro and Babel setup helpers for React Native / Expo projects.
|
|
5
|
+
*
|
|
6
|
+
* All three functions are meant to be called from Node.js config files
|
|
7
|
+
* (metro.config.js, babel.config.js). They are safe to import in React
|
|
8
|
+
* Native bundles but will never execute there.
|
|
9
|
+
*/
|
|
10
|
+
interface KbachOptions {
|
|
11
|
+
/** Path to kbach.config.js, relative to project root. Default: 'kbach.config.js' */
|
|
12
|
+
configFile?: string;
|
|
13
|
+
/** JSX attribute names to transform at build time. Default: ['tw', 'className'] */
|
|
14
|
+
attributes?: string[];
|
|
15
|
+
/** Log transformed class strings to the Metro console. Default: false */
|
|
16
|
+
debug?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Inject the Kbach Babel plugin into a Metro transformer config.
|
|
20
|
+
*
|
|
21
|
+
* metro.config.js (Expo):
|
|
22
|
+
* ```js
|
|
23
|
+
* const { getDefaultConfig } = require('expo/metro-config');
|
|
24
|
+
* const { withKbach } = require('@kbach/native');
|
|
25
|
+
* const config = getDefaultConfig(__dirname);
|
|
26
|
+
* module.exports = withKbach(config);
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* metro.config.js (bare React Native):
|
|
30
|
+
* ```js
|
|
31
|
+
* const { getDefaultConfig } = require('@react-native/metro-config');
|
|
32
|
+
* const { withKbach } = require('@kbach/native');
|
|
33
|
+
* const config = getDefaultConfig(__dirname);
|
|
34
|
+
* module.exports = withKbach(config);
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
declare function withKbach(metroConfig: Record<string, any>, options?: KbachOptions): Record<string, any>;
|
|
38
|
+
/**
|
|
39
|
+
* Add the Kbach plugin to an existing Babel config.
|
|
40
|
+
* Use this when you have a custom babel.config.js and want to keep it.
|
|
41
|
+
*
|
|
42
|
+
* babel.config.js:
|
|
43
|
+
* ```js
|
|
44
|
+
* const { withKbachBabel } = require('@kbach/native');
|
|
45
|
+
* module.exports = withKbachBabel({
|
|
46
|
+
* presets: ['babel-preset-expo'],
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
declare function withKbachBabel(babelConfig: Record<string, any>, options?: KbachOptions): Record<string, any>;
|
|
51
|
+
/**
|
|
52
|
+
* Generate a complete Babel config for Expo projects.
|
|
53
|
+
* This is the recommended one-liner for new projects.
|
|
54
|
+
*
|
|
55
|
+
* babel.config.js:
|
|
56
|
+
* ```js
|
|
57
|
+
* const { createKbachConfig } = require('@kbach/native');
|
|
58
|
+
* module.exports = createKbachConfig();
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
declare function createKbachConfig(options?: KbachOptions): Record<string, unknown>;
|
|
62
|
+
|
|
63
|
+
export { type KbachOptions, createKbachConfig, withKbach, withKbachBabel };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export * from '@kbach/react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Metro and Babel setup helpers for React Native / Expo projects.
|
|
5
|
+
*
|
|
6
|
+
* All three functions are meant to be called from Node.js config files
|
|
7
|
+
* (metro.config.js, babel.config.js). They are safe to import in React
|
|
8
|
+
* Native bundles but will never execute there.
|
|
9
|
+
*/
|
|
10
|
+
interface KbachOptions {
|
|
11
|
+
/** Path to kbach.config.js, relative to project root. Default: 'kbach.config.js' */
|
|
12
|
+
configFile?: string;
|
|
13
|
+
/** JSX attribute names to transform at build time. Default: ['tw', 'className'] */
|
|
14
|
+
attributes?: string[];
|
|
15
|
+
/** Log transformed class strings to the Metro console. Default: false */
|
|
16
|
+
debug?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Inject the Kbach Babel plugin into a Metro transformer config.
|
|
20
|
+
*
|
|
21
|
+
* metro.config.js (Expo):
|
|
22
|
+
* ```js
|
|
23
|
+
* const { getDefaultConfig } = require('expo/metro-config');
|
|
24
|
+
* const { withKbach } = require('@kbach/native');
|
|
25
|
+
* const config = getDefaultConfig(__dirname);
|
|
26
|
+
* module.exports = withKbach(config);
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* metro.config.js (bare React Native):
|
|
30
|
+
* ```js
|
|
31
|
+
* const { getDefaultConfig } = require('@react-native/metro-config');
|
|
32
|
+
* const { withKbach } = require('@kbach/native');
|
|
33
|
+
* const config = getDefaultConfig(__dirname);
|
|
34
|
+
* module.exports = withKbach(config);
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
declare function withKbach(metroConfig: Record<string, any>, options?: KbachOptions): Record<string, any>;
|
|
38
|
+
/**
|
|
39
|
+
* Add the Kbach plugin to an existing Babel config.
|
|
40
|
+
* Use this when you have a custom babel.config.js and want to keep it.
|
|
41
|
+
*
|
|
42
|
+
* babel.config.js:
|
|
43
|
+
* ```js
|
|
44
|
+
* const { withKbachBabel } = require('@kbach/native');
|
|
45
|
+
* module.exports = withKbachBabel({
|
|
46
|
+
* presets: ['babel-preset-expo'],
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
declare function withKbachBabel(babelConfig: Record<string, any>, options?: KbachOptions): Record<string, any>;
|
|
51
|
+
/**
|
|
52
|
+
* Generate a complete Babel config for Expo projects.
|
|
53
|
+
* This is the recommended one-liner for new projects.
|
|
54
|
+
*
|
|
55
|
+
* babel.config.js:
|
|
56
|
+
* ```js
|
|
57
|
+
* const { createKbachConfig } = require('@kbach/native');
|
|
58
|
+
* module.exports = createKbachConfig();
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
declare function createKbachConfig(options?: KbachOptions): Record<string, unknown>;
|
|
62
|
+
|
|
63
|
+
export { type KbachOptions, createKbachConfig, withKbach, withKbachBabel };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
|
+
createKbachConfig: () => createKbachConfig,
|
|
25
|
+
withKbach: () => withKbach,
|
|
26
|
+
withKbachBabel: () => withKbachBabel
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(index_exports);
|
|
29
|
+
__reExport(index_exports, require("@kbach/react"), module.exports);
|
|
30
|
+
|
|
31
|
+
// src/setup.ts
|
|
32
|
+
function withKbach(metroConfig, options = {}) {
|
|
33
|
+
const {
|
|
34
|
+
configFile = "kbach.config.js",
|
|
35
|
+
attributes = ["tw", "className"],
|
|
36
|
+
debug = false
|
|
37
|
+
} = options;
|
|
38
|
+
const pluginEntry = ["babel-plugin-kbach", { configFile, attributes, debug }];
|
|
39
|
+
return {
|
|
40
|
+
...metroConfig,
|
|
41
|
+
transformer: {
|
|
42
|
+
...metroConfig.transformer ?? {},
|
|
43
|
+
getTransformOptions: wrapTransformOptions(
|
|
44
|
+
metroConfig.transformer?.getTransformOptions,
|
|
45
|
+
pluginEntry
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function wrapTransformOptions(existing, pluginEntry) {
|
|
51
|
+
return async function getTransformOptions(...args) {
|
|
52
|
+
const base = existing ? await existing(...args) : {};
|
|
53
|
+
const existingPlugins = base.transform?.customTransformOptions?.babelPlugins ?? [];
|
|
54
|
+
base.transform = base.transform ?? {};
|
|
55
|
+
base.transform.customTransformOptions = {
|
|
56
|
+
...base.transform.customTransformOptions ?? {},
|
|
57
|
+
babelPlugins: [pluginEntry, ...existingPlugins]
|
|
58
|
+
};
|
|
59
|
+
return base;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function withKbachBabel(babelConfig, options = {}) {
|
|
63
|
+
const {
|
|
64
|
+
configFile = "kbach.config.js",
|
|
65
|
+
attributes = ["tw", "className"],
|
|
66
|
+
debug = false
|
|
67
|
+
} = options;
|
|
68
|
+
const pluginEntry = ["babel-plugin-kbach", { configFile, attributes, debug }];
|
|
69
|
+
const presets = (babelConfig.presets ?? []).map((preset) => {
|
|
70
|
+
const [name, presetOpts = {}] = Array.isArray(preset) ? preset : [preset, {}];
|
|
71
|
+
if (name === "babel-preset-expo" || name === "@babel/preset-react" || typeof name === "string" && name.includes("react")) {
|
|
72
|
+
return [name, { ...presetOpts, jsxImportSource: "@kbach/native" }];
|
|
73
|
+
}
|
|
74
|
+
return preset;
|
|
75
|
+
});
|
|
76
|
+
return {
|
|
77
|
+
...babelConfig,
|
|
78
|
+
presets,
|
|
79
|
+
plugins: [pluginEntry, ...babelConfig.plugins ?? []]
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function createKbachConfig(options = {}) {
|
|
83
|
+
return {
|
|
84
|
+
presets: [
|
|
85
|
+
["babel-preset-expo", { jsxImportSource: "@kbach/native" }]
|
|
86
|
+
],
|
|
87
|
+
plugins: [
|
|
88
|
+
["babel-plugin-kbach", {
|
|
89
|
+
configFile: options.configFile ?? "kbach.config.js",
|
|
90
|
+
attributes: options.attributes ?? ["tw", "className"],
|
|
91
|
+
debug: options.debug ?? false,
|
|
92
|
+
jsxRuntime: false
|
|
93
|
+
}]
|
|
94
|
+
]
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
98
|
+
0 && (module.exports = {
|
|
99
|
+
createKbachConfig,
|
|
100
|
+
withKbach,
|
|
101
|
+
withKbachBabel,
|
|
102
|
+
...require("@kbach/react")
|
|
103
|
+
});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
export * from "@kbach/react";
|
|
3
|
+
|
|
4
|
+
// src/setup.ts
|
|
5
|
+
function withKbach(metroConfig, options = {}) {
|
|
6
|
+
const {
|
|
7
|
+
configFile = "kbach.config.js",
|
|
8
|
+
attributes = ["tw", "className"],
|
|
9
|
+
debug = false
|
|
10
|
+
} = options;
|
|
11
|
+
const pluginEntry = ["babel-plugin-kbach", { configFile, attributes, debug }];
|
|
12
|
+
return {
|
|
13
|
+
...metroConfig,
|
|
14
|
+
transformer: {
|
|
15
|
+
...metroConfig.transformer ?? {},
|
|
16
|
+
getTransformOptions: wrapTransformOptions(
|
|
17
|
+
metroConfig.transformer?.getTransformOptions,
|
|
18
|
+
pluginEntry
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function wrapTransformOptions(existing, pluginEntry) {
|
|
24
|
+
return async function getTransformOptions(...args) {
|
|
25
|
+
const base = existing ? await existing(...args) : {};
|
|
26
|
+
const existingPlugins = base.transform?.customTransformOptions?.babelPlugins ?? [];
|
|
27
|
+
base.transform = base.transform ?? {};
|
|
28
|
+
base.transform.customTransformOptions = {
|
|
29
|
+
...base.transform.customTransformOptions ?? {},
|
|
30
|
+
babelPlugins: [pluginEntry, ...existingPlugins]
|
|
31
|
+
};
|
|
32
|
+
return base;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function withKbachBabel(babelConfig, options = {}) {
|
|
36
|
+
const {
|
|
37
|
+
configFile = "kbach.config.js",
|
|
38
|
+
attributes = ["tw", "className"],
|
|
39
|
+
debug = false
|
|
40
|
+
} = options;
|
|
41
|
+
const pluginEntry = ["babel-plugin-kbach", { configFile, attributes, debug }];
|
|
42
|
+
const presets = (babelConfig.presets ?? []).map((preset) => {
|
|
43
|
+
const [name, presetOpts = {}] = Array.isArray(preset) ? preset : [preset, {}];
|
|
44
|
+
if (name === "babel-preset-expo" || name === "@babel/preset-react" || typeof name === "string" && name.includes("react")) {
|
|
45
|
+
return [name, { ...presetOpts, jsxImportSource: "@kbach/native" }];
|
|
46
|
+
}
|
|
47
|
+
return preset;
|
|
48
|
+
});
|
|
49
|
+
return {
|
|
50
|
+
...babelConfig,
|
|
51
|
+
presets,
|
|
52
|
+
plugins: [pluginEntry, ...babelConfig.plugins ?? []]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function createKbachConfig(options = {}) {
|
|
56
|
+
return {
|
|
57
|
+
presets: [
|
|
58
|
+
["babel-preset-expo", { jsxImportSource: "@kbach/native" }]
|
|
59
|
+
],
|
|
60
|
+
plugins: [
|
|
61
|
+
["babel-plugin-kbach", {
|
|
62
|
+
configFile: options.configFile ?? "kbach.config.js",
|
|
63
|
+
attributes: options.attributes ?? ["tw", "className"],
|
|
64
|
+
debug: options.debug ?? false,
|
|
65
|
+
jsxRuntime: false
|
|
66
|
+
}]
|
|
67
|
+
]
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
createKbachConfig,
|
|
72
|
+
withKbach,
|
|
73
|
+
withKbachBabel
|
|
74
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/jsx-dev-runtime.ts
|
|
21
|
+
var jsx_dev_runtime_exports = {};
|
|
22
|
+
__export(jsx_dev_runtime_exports, {
|
|
23
|
+
Fragment: () => import_jsx_dev_runtime.Fragment,
|
|
24
|
+
jsxDEV: () => import_jsx_dev_runtime.jsxDEV
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(jsx_dev_runtime_exports);
|
|
27
|
+
var import_jsx_dev_runtime = require("@kbach/react/jsx-dev-runtime");
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
Fragment,
|
|
31
|
+
jsxDEV
|
|
32
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Fragment, jsx, jsxs } from '@kbach/react/jsx-runtime';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Fragment, jsx, jsxs } from '@kbach/react/jsx-runtime';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/jsx-runtime.ts
|
|
21
|
+
var jsx_runtime_exports = {};
|
|
22
|
+
__export(jsx_runtime_exports, {
|
|
23
|
+
Fragment: () => import_jsx_runtime.Fragment,
|
|
24
|
+
jsx: () => import_jsx_runtime.jsx,
|
|
25
|
+
jsxs: () => import_jsx_runtime.jsxs
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(jsx_runtime_exports);
|
|
28
|
+
var import_jsx_runtime = require("@kbach/react/jsx-runtime");
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
Fragment,
|
|
32
|
+
jsx,
|
|
33
|
+
jsxs
|
|
34
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kbach/native",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Single-package Kbach install for React Native and Expo — includes core, components, Babel plugin, and Metro config",
|
|
5
|
+
"source": "./src/index.ts",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"source": "./src/index.ts",
|
|
13
|
+
"import": "./dist/index.mjs",
|
|
14
|
+
"require": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./jsx-runtime": {
|
|
17
|
+
"types": "./dist/jsx-runtime.d.ts",
|
|
18
|
+
"source": "./src/jsx-runtime.ts",
|
|
19
|
+
"import": "./dist/jsx-runtime.mjs",
|
|
20
|
+
"require": "./dist/jsx-runtime.js"
|
|
21
|
+
},
|
|
22
|
+
"./jsx-dev-runtime": {
|
|
23
|
+
"types": "./dist/jsx-dev-runtime.d.ts",
|
|
24
|
+
"source": "./src/jsx-dev-runtime.ts",
|
|
25
|
+
"import": "./dist/jsx-dev-runtime.mjs",
|
|
26
|
+
"require": "./dist/jsx-dev-runtime.js"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsup src/index.ts src/jsx-runtime.ts src/jsx-dev-runtime.ts --format esm,cjs --dts --clean",
|
|
31
|
+
"dev": "tsup src/index.ts src/jsx-runtime.ts src/jsx-dev-runtime.ts --format esm,cjs --dts --watch",
|
|
32
|
+
"test": "jest --passWithNoTests",
|
|
33
|
+
"lint": "tsc --noEmit"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@kbach/core": "0.1.0",
|
|
37
|
+
"@kbach/react": "0.1.0",
|
|
38
|
+
"babel-plugin-kbach": "0.1.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/react": "^19.2.0",
|
|
42
|
+
"tsup": "^8.0.0"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"@babel/core": "^7.0.0",
|
|
46
|
+
"react": ">=17.0.0",
|
|
47
|
+
"react-native": ">=0.70.0"
|
|
48
|
+
},
|
|
49
|
+
"peerDependenciesMeta": {
|
|
50
|
+
"@babel/core": { "optional": true },
|
|
51
|
+
"react-native": { "optional": true }
|
|
52
|
+
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"access": "public"
|
|
55
|
+
},
|
|
56
|
+
"files": ["dist"],
|
|
57
|
+
"keywords": ["react-native", "expo", "tailwind", "css-in-js", "styling", "khmer"]
|
|
58
|
+
}
|