@tamagui/cli 1.57.0 → 1.57.2
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/generate.js +0 -0
- package/package.json +10 -10
- package/dist/dev/WebpackHMRClient.js +0 -2
- package/dist/dev/WebpackHMRClient.js.map +0 -6
- package/dist/dev/getVitePath.js +0 -58
- package/dist/dev/getVitePath.js.map +0 -6
- package/dist/getVitePath.js +0 -58
- package/dist/getVitePath.js.map +0 -6
- package/dist/vendor/repack/dev-server/vendor/metro-inspector-proxy/src/Device.js +0 -35
- package/dist/vendor/repack/dev-server/vendor/metro-inspector-proxy/src/Device.js.map +0 -6
- package/types/dev/WebpackHMRClient.d.ts +0 -1
- package/types/dev/WebpackHMRClient.d.ts.map +0 -1
- package/types/dev/getVitePath.d.ts +0 -2
- package/types/dev/getVitePath.d.ts.map +0 -1
- package/types/getVitePath.d.ts +0 -2
- package/types/getVitePath.d.ts.map +0 -1
package/dist/generate.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/cli",
|
|
3
|
-
"version": "1.57.
|
|
3
|
+
"version": "1.57.2",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"main": "dist",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"@callstack/repack-debugger-app": "^1.0.0",
|
|
29
29
|
"@fastify/sensible": "^4.1.0",
|
|
30
30
|
"@fastify/static": "^5.0.2",
|
|
31
|
-
"@tamagui/build": "1.57.
|
|
32
|
-
"@tamagui/create-theme": "1.57.
|
|
33
|
-
"@tamagui/generate-themes": "1.57.
|
|
34
|
-
"@tamagui/static": "1.57.
|
|
35
|
-
"@tamagui/types": "1.57.
|
|
36
|
-
"@tamagui/vite-native-hmr": "1.57.
|
|
37
|
-
"@tamagui/vite-native-swc": "1.57.
|
|
38
|
-
"@tamagui/vite-plugin": "1.57.
|
|
31
|
+
"@tamagui/build": "1.57.2",
|
|
32
|
+
"@tamagui/create-theme": "1.57.2",
|
|
33
|
+
"@tamagui/generate-themes": "1.57.2",
|
|
34
|
+
"@tamagui/static": "1.57.2",
|
|
35
|
+
"@tamagui/types": "1.57.2",
|
|
36
|
+
"@tamagui/vite-native-hmr": "1.57.2",
|
|
37
|
+
"@tamagui/vite-native-swc": "1.57.2",
|
|
38
|
+
"@tamagui/vite-plugin": "1.57.2",
|
|
39
39
|
"@types/compression": "^1.7.2",
|
|
40
40
|
"@types/morgan": "^1.9.3",
|
|
41
41
|
"@vitejs/plugin-react": "^4.0.4",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"prompts": "2.1.0",
|
|
73
73
|
"source-map": "^0.7.3",
|
|
74
74
|
"ts-morph": "^15.1.0",
|
|
75
|
-
"typescript": "^5.
|
|
75
|
+
"typescript": "^5.2.2",
|
|
76
76
|
"url": "^0.11.0",
|
|
77
77
|
"vite": "^4.4.9",
|
|
78
78
|
"vite-plugin-entry-shaking": "^0.3.2",
|
package/dist/dev/getVitePath.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var getVitePath_exports = {};
|
|
30
|
-
__export(getVitePath_exports, {
|
|
31
|
-
getVitePath: () => getVitePath
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(getVitePath_exports);
|
|
34
|
-
var import_path = require("path");
|
|
35
|
-
var import_esm_resolve = __toESM(require("esm-resolve"));
|
|
36
|
-
var import_fs_extra = require("fs-extra");
|
|
37
|
-
async function getVitePath(moduleName) {
|
|
38
|
-
if (moduleName[0] === ".") {
|
|
39
|
-
return (0, import_path.join)(`apps/tamastack/src`, moduleName) + ".js";
|
|
40
|
-
} else {
|
|
41
|
-
let id = "";
|
|
42
|
-
const resolved = (0, import_esm_resolve.default)((0, import_path.join)(process.cwd(), "index.js"))(id);
|
|
43
|
-
if (!resolved) {
|
|
44
|
-
throw new Error(`\u274C cant find`);
|
|
45
|
-
}
|
|
46
|
-
const real = await (0, import_fs_extra.realpath)(resolved);
|
|
47
|
-
id = (0, import_path.relative)(file, real);
|
|
48
|
-
if (id.endsWith(`/react/jsx-dev-runtime.js`)) {
|
|
49
|
-
id = "react/jsx-runtime";
|
|
50
|
-
}
|
|
51
|
-
return id;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
-
0 && (module.exports = {
|
|
56
|
-
getVitePath
|
|
57
|
-
});
|
|
58
|
-
//# sourceMappingURL=getVitePath.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/dev/getVitePath.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA+B;AAE/B,yBAAoB;AACpB,sBAAyB;AAEzB,eAAsB,YAAY,YAAoB;AACpD,MAAI,WAAW,CAAC,MAAM,KAAK;AAEzB,eAAO,kBAAK,sBAAsB,UAAU,IAAI;AAAA,EAClD,OAAO;AACL,QAAI,KAAK;AACT,UAAM,eAAW,mBAAAA,aAAQ,kBAAK,QAAQ,IAAI,GAAG,UAAU,CAAC,EAAE,EAAE;AAE5D,QAAI,CAAC,UAAU;AACb,YAAM,IAAI,MAAM,kBAAa;AAAA,IAC/B;AACA,UAAM,OAAO,UAAM,0BAAS,QAAQ;AACpC,aAAK,sBAAS,MAAM,IAAI;AACxB,QAAI,GAAG,SAAS,2BAA2B,GAAG;AAC5C,WAAK;AAAA,IACP;AACA,WAAO;AAAA,EACT;AACF;",
|
|
5
|
-
"names": ["resolve"]
|
|
6
|
-
}
|
package/dist/getVitePath.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var getVitePath_exports = {};
|
|
30
|
-
__export(getVitePath_exports, {
|
|
31
|
-
getVitePath: () => getVitePath
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(getVitePath_exports);
|
|
34
|
-
var import_path = require("path");
|
|
35
|
-
var import_esm_resolve = __toESM(require("esm-resolve"));
|
|
36
|
-
var import_fs_extra = require("fs-extra");
|
|
37
|
-
async function getVitePath(moduleName) {
|
|
38
|
-
if (moduleName[0] === ".") {
|
|
39
|
-
return (0, import_path.join)(`apps/tamastack/src`, moduleName) + ".js";
|
|
40
|
-
} else {
|
|
41
|
-
let id = "";
|
|
42
|
-
const resolved = (0, import_esm_resolve.default)((0, import_path.join)(process.cwd(), "index.js"))(id);
|
|
43
|
-
if (!resolved) {
|
|
44
|
-
throw new Error(`\u274C cant find`);
|
|
45
|
-
}
|
|
46
|
-
const real = await (0, import_fs_extra.realpath)(resolved);
|
|
47
|
-
id = (0, import_path.relative)(file, real);
|
|
48
|
-
if (id.endsWith(`/react/jsx-dev-runtime.js`)) {
|
|
49
|
-
id = "react/jsx-runtime";
|
|
50
|
-
}
|
|
51
|
-
return id;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
-
0 && (module.exports = {
|
|
56
|
-
getVitePath
|
|
57
|
-
});
|
|
58
|
-
//# sourceMappingURL=getVitePath.js.map
|
package/dist/getVitePath.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/getVitePath.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA+B;AAE/B,yBAAoB;AACpB,sBAAyB;AAEzB,eAAsB,YAAY,YAAoB;AACpD,MAAI,WAAW,CAAC,MAAM,KAAK;AAEzB,eAAO,kBAAK,sBAAsB,UAAU,IAAI;AAAA,EAClD,OAAO;AACL,QAAI,KAAK;AACT,UAAM,eAAW,mBAAAA,aAAQ,kBAAK,QAAQ,IAAI,GAAG,UAAU,CAAC,EAAE,EAAE;AAE5D,QAAI,CAAC,UAAU;AACb,YAAM,IAAI,MAAM,kBAAa;AAAA,IAC/B;AACA,UAAM,OAAO,UAAM,0BAAS,QAAQ;AACpC,aAAK,sBAAS,MAAM,IAAI;AACxB,QAAI,GAAG,SAAS,2BAA2B,GAAG;AAC5C,WAAK;AAAA,IACP;AACA,WAAO;AAAA,EACT;AACF;",
|
|
5
|
-
"names": ["resolve"]
|
|
6
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var Device_exports = {};
|
|
30
|
-
__export(Device_exports, {
|
|
31
|
-
default: () => import_Device.default
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(Device_exports);
|
|
34
|
-
var import_Device = __toESM(require("./Device.cjs"));
|
|
35
|
-
//# sourceMappingURL=Device.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=WebpackHMRClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebpackHMRClient.d.ts","sourceRoot":"","sources":["../../src/dev/WebpackHMRClient.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getVitePath.d.ts","sourceRoot":"","sources":["../../src/dev/getVitePath.ts"],"names":[],"mappings":"AAKA,wBAAsB,WAAW,CAAC,UAAU,EAAE,MAAM,mBAkBnD"}
|
package/types/getVitePath.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getVitePath.d.ts","sourceRoot":"","sources":["../src/getVitePath.ts"],"names":[],"mappings":"AAKA,wBAAsB,WAAW,CAAC,UAAU,EAAE,MAAM,mBAkBnD"}
|