@unsetsoft/ryunixjs 0.2.31-nightly.8 → 0.2.31

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.
@@ -1,6 +1,6 @@
1
1
  // Can be imported from webpack package
2
2
  import webpack from "webpack";
3
- import * as webpackConfig from "../webpack.config.js";
3
+ import webpackConfig from "../webpack.config.mjs";
4
4
  const compiler = webpack(webpackConfig);
5
5
 
6
6
  export { compiler };
@@ -1,8 +1,8 @@
1
1
  #! /usr/bin/env node
2
2
  import yargs from "yargs";
3
3
  import { hideBin } from "yargs/helpers";
4
- import { StartServer } from "./serve.js";
5
- import { compiler } from "./compiler.js";
4
+ import { StartServer } from "./serve.mjs";
5
+ import { compiler } from "./compiler.mjs";
6
6
  import logger from "terminal-log";
7
7
  const serv = {
8
8
  command: "server",
@@ -1,6 +1,6 @@
1
1
  import Webpack from "webpack";
2
2
  import WebpackDevServer from "webpack-dev-server";
3
- import * as webpackConfig from "../webpack.config.js";
3
+ import webpackConfig from "../webpack.config.mjs";
4
4
 
5
5
  const StartServer = async (cliSettings) => {
6
6
  const compiler = Webpack(webpackConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsetsoft/ryunixjs",
3
- "version": "0.2.31-nightly.8",
3
+ "version": "0.2.31",
4
4
  "license": "MIT",
5
5
  "main": "./dist/Ryunix.js",
6
6
  "private": false,
@@ -12,12 +12,12 @@
12
12
  "build": "rollup ./src/main.js --file ./dist/Ryunix.js --format umd --name Ryunix",
13
13
  "prepublish": "npm run build",
14
14
  "postinstall": "npm run build",
15
- "cli": "node ./bin/index.js",
15
+ "cli": "node ./bin/index.mjs",
16
16
  "nightly:release": "npm publish --tag nightly",
17
17
  "release": "npm publish"
18
18
  },
19
19
  "bin": {
20
- "ryunix": "./bin/index.js"
20
+ "ryunix": "./bin/index.mjs"
21
21
  },
22
22
  "dependencies": {
23
23
  "@babel/cli": "7.19.3",
@@ -27,16 +27,14 @@
27
27
  "@babel/polyfill": "7.12.1",
28
28
  "@babel/preset-env": "^7.22.14",
29
29
  "@babel/preset-react": "^7.22.5",
30
+ "@mdx-js/loader": "^2.3.0",
30
31
  "babel-loader": "^9.1.3",
31
32
  "css-loader": "^6.8.1",
32
- "error-overlay-webpack-plugin": "^1.1.1",
33
33
  "file-loader": "^6.2.0",
34
34
  "html-loader": "^4.2.0",
35
35
  "html-webpack-plugin": "^5.5.3",
36
36
  "image-webpack-loader": "8.1.0",
37
37
  "node-sass": "9.0.0",
38
- "remark-html": "^15.0.2",
39
- "remark-loader": "^5.0.0",
40
38
  "rollup": "3.24.0",
41
39
  "sass": "^1.66.1",
42
40
  "sass-loader": "^13.3.2",
@@ -51,7 +49,6 @@
51
49
  "engines": {
52
50
  "node": ">=18.16.0"
53
51
  },
54
- "type": "module",
55
52
  "keywords": [
56
53
  "ryunixjs"
57
54
  ]
package/src/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import Ryunix from "./lib/index";
1
+ import Ryunix from "./lib/index.js";
2
2
 
3
3
  export {
4
4
  useStore,
@@ -8,7 +8,7 @@ export {
8
8
  Fragments,
9
9
  Navigate,
10
10
  Router,
11
- } from "./lib/index";
11
+ } from "./lib/index.js";
12
12
 
13
13
  window.Ryunix = Ryunix;
14
14
 
@@ -1,23 +1,27 @@
1
- import path from "path";
1
+ import { fileURLToPath } from "url";
2
+ import { dirname, join, resolve } from "path";
2
3
  import HtmlWebpackPlugin from "html-webpack-plugin";
3
- import * as ErrorOverlayPlugin from "error-overlay-webpack-plugin";
4
- import { getPackageManager } from "./utils/index.js";
5
- import RemarkHTML from "remark-html";
4
+ import { getPackageManager } from "./utils/index.mjs";
5
+
6
+
7
+ const __filename = fileURLToPath(import.meta.url);
8
+
9
+ const __dirname = dirname(__filename);
6
10
 
7
11
  let dir;
8
12
  const manager = getPackageManager();
9
13
  if (manager === "yarn" || manager === "npm" || manager === "bun") {
10
- dir = path.dirname(path.resolve(path.join(__dirname, "..", "..")));
14
+ dir = dirname(resolve(join(__dirname, "..", "..")));
11
15
  } else if (manager === "pnpm") {
12
16
  throw new Error(`The manager ${manager} is not supported.`);
13
17
  }
14
18
 
15
- module.exports = {
19
+ export default {
16
20
  mode: "production",
17
- entry: path.join(dir, "src", "main.ryx"),
21
+ entry: join(dir, "src", "main.ryx"),
18
22
  devtool: "nosources-source-map",
19
23
  output: {
20
- path: path.join(dir, ".ryunix"),
24
+ path: join(dir, ".ryunix"),
21
25
  chunkFilename: "./assets/js/[name].[fullhash:8].bundle.js",
22
26
  filename: "./assets/js/[name].[fullhash:8].bundle.js",
23
27
  devtoolModuleFilenameTemplate: "ryunix/[resource-path]",
@@ -89,22 +93,6 @@ module.exports = {
89
93
  loader: "url-loader",
90
94
  options: { limit: false },
91
95
  },
92
- {
93
- test: /\.md$/,
94
- use: [
95
- {
96
- loader: "html-loader",
97
- },
98
- {
99
- loader: "remark-loader",
100
- options: {
101
- remarkOptions: {
102
- plugins: [RemarkHTML],
103
- },
104
- },
105
- },
106
- ],
107
- },
108
96
  ],
109
97
  },
110
98
  resolve: {
@@ -112,9 +100,8 @@ module.exports = {
112
100
  },
113
101
  plugins: [
114
102
  new HtmlWebpackPlugin({
115
- template: path.join(dir, "public", "index.html"),
103
+ template: join(dir, "public", "index.html"),
116
104
  }),
117
- new ErrorOverlayPlugin(),
118
105
  ],
119
106
  externals: {
120
107
  ryunix: "Ryunix",
File without changes