@teardown/react-native 1.2.9 → 1.2.20

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/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@teardown/react-native",
3
- "version": "1.2.9",
3
+ "version": "1.2.20",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
7
- "build": "tsc",
8
- "dev": "tsc --declaration --watch"
7
+ "build": "tsc ",
8
+ "dev": "tsc --watch"
9
9
  },
10
10
  "main": "./dist/index.js",
11
11
  "types": "./dist/index.d.ts",
@@ -14,11 +14,13 @@
14
14
  "dist/**/*"
15
15
  ],
16
16
  "dependencies": {
17
- "@teardown/logger": "1.2.9",
18
- "@teardown/util": "1.2.9",
19
- "@teardown/websocket": "1.2.9"
17
+ "@teardown/logger": "1.2.20",
18
+ "@teardown/util": "1.2.20",
19
+ "@teardown/websocket": "1.2.20"
20
20
  },
21
21
  "devDependencies": {
22
+ "@teardown/config": "1.2.20",
23
+ "@teardown/react-native-ui": "1.2.20",
22
24
  "@types/react": "^18.3.1",
23
25
  "@types/react-native": "^0.73.0",
24
26
  "metro-config": "^0.81.0",
@@ -32,6 +34,7 @@
32
34
  "react": "^18",
33
35
  "react-native": "^0.75",
34
36
  "react-native-device-info": "^14",
35
- "react-native-gesture-handler": "^2"
37
+ "react-native-gesture-handler": "^2",
38
+ "@teardown/react-native-ui": "^1"
36
39
  }
37
40
  }
@@ -1,2 +0,0 @@
1
- import type { MetroConfig } from "metro-config";
2
- export declare const getConfig: (configPath: string) => Promise<MetroConfig>;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getConfig = void 0;
4
- const getConfig = async (configPath) => { };
5
- exports.getConfig = getConfig;
@@ -1 +0,0 @@
1
- export {};
@@ -1,45 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const node_path_1 = __importDefault(require("node:path"));
7
- const chokidar_1 = __importDefault(require("chokidar"));
8
- function getConfig() {
9
- const screensDir = node_path_1.default.join(__dirname, "screens");
10
- const outputFile = node_path_1.default.join(__dirname, "screens.gen.tsx");
11
- return {
12
- server: {
13
- enhanceMiddleware: (middleware) => {
14
- return (req, res, next) => {
15
- console.log("Request URL:", req.url);
16
- // Handle requests as usual
17
- return middleware;
18
- };
19
- },
20
- },
21
- };
22
- }
23
- // Function to generate the output file
24
- function generateOutputFile() {
25
- // Your code to generate the output file based on the files in the ./screens folder
26
- const outputContent = "/* Generated file */";
27
- console.log("Generating output file...");
28
- // fs.writeFileSync(outputFile, outputContent);
29
- }
30
- // Initialize the watcher
31
- const watcher = chokidar_1.default.watch(screensDir, {
32
- ignored: /(^|[\/\\])\../, // Ignore dotfiles
33
- persistent: true,
34
- });
35
- // Watch for changes in the ./screens folder
36
- watcher
37
- .on("add", generateOutputFile)
38
- .on("change", generateOutputFile)
39
- .on("unlink", generateOutputFile)
40
- .on("ready", generateOutputFile) // Generate the initial output file
41
- .on("error", (error) => console.error(`Watcher error: ${error}`));
42
- console.log(`Watching ${screensDir} for changes...`);
43
- module.exports = {
44
- server: {},
45
- };