@unsetsoft/ryunixjs 0.2.37-nightly.1 → 0.2.37-nightly.3
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/Ryunix.js +1 -7
- package/package.json +2 -1
- package/utils/path.cjs +9 -0
- package/webpack.config.mjs +3 -0
package/dist/Ryunix.js
CHANGED
|
@@ -281,13 +281,7 @@
|
|
|
281
281
|
Provider: null,
|
|
282
282
|
};
|
|
283
283
|
|
|
284
|
-
context.Provider = (value) =>
|
|
285
|
-
const provider = {
|
|
286
|
-
value: value,
|
|
287
|
-
};
|
|
288
|
-
|
|
289
|
-
return createElement("div", provider, props.children);
|
|
290
|
-
};
|
|
284
|
+
context.Provider = (value) => (context.Value = value);
|
|
291
285
|
|
|
292
286
|
return context;
|
|
293
287
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unsetsoft/ryunixjs",
|
|
3
|
-
"version": "0.2.37-nightly.
|
|
3
|
+
"version": "0.2.37-nightly.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/Ryunix.js",
|
|
6
6
|
"private": false,
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"crypto": "^1.0.1",
|
|
33
33
|
"css-loader": "^6.8.1",
|
|
34
34
|
"file-loader": "^6.2.0",
|
|
35
|
+
"glob": "^10.3.7",
|
|
35
36
|
"html-loader": "^4.2.0",
|
|
36
37
|
"html-webpack-plugin": "^5.5.3",
|
|
37
38
|
"image-webpack-loader": "8.1.0",
|
package/utils/path.cjs
ADDED
package/webpack.config.mjs
CHANGED
|
@@ -8,13 +8,16 @@ import {
|
|
|
8
8
|
resolveApp,
|
|
9
9
|
} from "./utils/index.mjs";
|
|
10
10
|
import fs from "fs";
|
|
11
|
+
import { testDir } from "./utils/path.cjs";
|
|
11
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
12
13
|
|
|
13
14
|
const __dirname = dirname(__filename);
|
|
14
15
|
|
|
15
16
|
let dir;
|
|
17
|
+
|
|
16
18
|
const manager = getPackageManager();
|
|
17
19
|
if (manager === "yarn" || manager === "npm" || manager === "bun") {
|
|
20
|
+
console.log(testDir("main.ryx"));
|
|
18
21
|
dir = dirname(join(__dirname, "..", ".."));
|
|
19
22
|
} else if (manager === "pnpm") {
|
|
20
23
|
throw new Error(`The manager ${manager} is not supported.`);
|