@d3plus/docs 3.0.0-alpha.3 → 3.0.0-alpha.4

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.
Files changed (2) hide show
  1. package/.storybook/main.js +18 -0
  2. package/package.json +8 -7
@@ -1,5 +1,6 @@
1
1
  import remarkGfm from "remark-gfm";
2
2
  import path from "node:path";
3
+ import glob from "glob";
3
4
 
4
5
  // monorepo fix
5
6
  // https://storybook.js.org/docs/faq#how-do-i-fix-module-resolution-in-special-environments
@@ -46,6 +47,23 @@ module.exports = {
46
47
  core: {
47
48
  disableTelemetry: true, // 👈 Disables telemetry
48
49
  disableWhatsNewNotifications: true,
50
+ },
51
+
52
+ webpackFinal: async (config) => {
53
+ if (config.resolve) {
54
+
55
+ const workspacePackages = glob.sync('../*/').reduce((aliases, folder) => {
56
+ const name = path.basename(folder);
57
+ if (name !== "docs") aliases[`@d3plus/${name}`] = path.resolve(__dirname, "../", folder);
58
+ return aliases;
59
+ }, {});
60
+
61
+ config.resolve.alias = {
62
+ ...workspacePackages,
63
+ ...config.resolve.alias
64
+ };
65
+ }
66
+ return config;
49
67
  }
50
68
 
51
69
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d3plus/docs",
3
- "version": "3.0.0-alpha.3",
3
+ "version": "3.0.0-alpha.4",
4
4
  "description": "Documentation and examples for the d3plus visualization library.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://d3plus.org",
@@ -15,11 +15,11 @@
15
15
  "dev": "node ../../scripts/dev.js"
16
16
  },
17
17
  "dependencies": {
18
- "@d3plus/core": "3.0.0-alpha.3",
19
- "@d3plus/dom": "3.0.0-alpha.3",
20
- "@d3plus/format": "3.0.0-alpha.3",
21
- "@d3plus/locales": "3.0.0-alpha.3",
22
- "@d3plus/react": "3.0.0-alpha.3",
18
+ "@d3plus/core": "3.0.0-alpha.4",
19
+ "@d3plus/dom": "3.0.0-alpha.4",
20
+ "@d3plus/format": "3.0.0-alpha.4",
21
+ "@d3plus/locales": "3.0.0-alpha.4",
22
+ "@d3plus/react": "3.0.0-alpha.4",
23
23
  "@storybook/blocks": "^8.6.12",
24
24
  "@storybook/components": "^8.6.12",
25
25
  "@storybook/icons": "^1.4.0",
@@ -30,7 +30,8 @@
30
30
  "react": "^18.2.0",
31
31
  "react-dom": "^18.2.0",
32
32
  "typescript": "^5.8.2",
33
- "vite": "^6.2.5"
33
+ "vite": "^6.2.5",
34
+ "webpack": "^5.98.0"
34
35
  },
35
36
  "devDependencies": {
36
37
  "@storybook/addon-controls": "^8.6.12",