@pandacss/config 0.5.1 → 0.7.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.js +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -99,6 +99,7 @@ function escapeStringRegexp(string) {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
// src/get-mod-deps.ts
|
|
102
|
+
var import_typescript = __toESM(require("typescript"));
|
|
102
103
|
var jsExtensions = [".js", ".cjs", ".mjs"];
|
|
103
104
|
var jsResolutionOrder = ["", ".js", ".cjs", ".mjs", ".ts", ".cts", ".mts", ".jsx", ".tsx"];
|
|
104
105
|
var tsResolutionOrder = ["", ".ts", ".cts", ".mts", ".tsx", ".js", ".cjs", ".mjs", ".jsx"];
|
|
@@ -159,6 +160,11 @@ function getDeps(opts, fromAlias) {
|
|
|
159
160
|
getDeps(Object.assign({}, nextOpts, { filename: mod }));
|
|
160
161
|
return;
|
|
161
162
|
}
|
|
163
|
+
const found = import_typescript.default.resolveModuleName(mod, absoluteFile, {}, import_typescript.default.sys).resolvedModule;
|
|
164
|
+
if (found && found.extension === ".ts") {
|
|
165
|
+
getDeps(Object.assign({}, nextOpts, { filename: found.resolvedFileName }));
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
162
168
|
if (!opts.pathMappings)
|
|
163
169
|
return;
|
|
164
170
|
const filename2 = resolveTsPathPattern(opts.pathMappings, mod);
|
package/dist/index.mjs
CHANGED
|
@@ -60,6 +60,7 @@ function escapeStringRegexp(string) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
// src/get-mod-deps.ts
|
|
63
|
+
import ts from "typescript";
|
|
63
64
|
var jsExtensions = [".js", ".cjs", ".mjs"];
|
|
64
65
|
var jsResolutionOrder = ["", ".js", ".cjs", ".mjs", ".ts", ".cts", ".mts", ".jsx", ".tsx"];
|
|
65
66
|
var tsResolutionOrder = ["", ".ts", ".cts", ".mts", ".tsx", ".js", ".cjs", ".mjs", ".jsx"];
|
|
@@ -120,6 +121,11 @@ function getDeps(opts, fromAlias) {
|
|
|
120
121
|
getDeps(Object.assign({}, nextOpts, { filename: mod }));
|
|
121
122
|
return;
|
|
122
123
|
}
|
|
124
|
+
const found = ts.resolveModuleName(mod, absoluteFile, {}, ts.sys).resolvedModule;
|
|
125
|
+
if (found && found.extension === ".ts") {
|
|
126
|
+
getDeps(Object.assign({}, nextOpts, { filename: found.resolvedFileName }));
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
123
129
|
if (!opts.pathMappings)
|
|
124
130
|
return;
|
|
125
131
|
const filename2 = resolveTsPathPattern(opts.pathMappings, mod);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Find and load panda config",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"bundle-n-require": "^1.0.1",
|
|
31
31
|
"escalade": "3.1.1",
|
|
32
|
-
"jiti": "^1.
|
|
32
|
+
"jiti": "^1.19.1",
|
|
33
33
|
"merge-anything": "^5.1.7",
|
|
34
|
-
"
|
|
35
|
-
"@pandacss/error": "0.
|
|
36
|
-
"@pandacss/logger": "0.
|
|
37
|
-
"@pandacss/preset-base": "0.
|
|
38
|
-
"@pandacss/preset-panda": "0.
|
|
39
|
-
"@pandacss/types": "0.
|
|
34
|
+
"typescript": "^5.1.6",
|
|
35
|
+
"@pandacss/error": "0.7.0",
|
|
36
|
+
"@pandacss/logger": "0.7.0",
|
|
37
|
+
"@pandacss/preset-base": "0.7.0",
|
|
38
|
+
"@pandacss/preset-panda": "0.7.0",
|
|
39
|
+
"@pandacss/types": "0.7.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"pkg-types": "1.0.3"
|