@storybook/ember 9.0.10 → 9.0.12
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/util.js +2 -1
- package/dist/util.mjs +3 -2
- package/package.json +4 -4
package/dist/util.js
CHANGED
@@ -2,9 +2,10 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.findDistFile = void 0;
|
4
4
|
const node_path_1 = require("node:path");
|
5
|
+
const common_1 = require("storybook/internal/common");
|
5
6
|
const find_up_1 = require("find-up");
|
6
7
|
const findDistFile = (cwd, relativePath) => {
|
7
|
-
const nearestPackageJson = (0, find_up_1.
|
8
|
+
const nearestPackageJson = (0, find_up_1.findUpSync)('package.json', { cwd, stopAt: (0, common_1.getProjectRoot)() });
|
8
9
|
if (!nearestPackageJson) {
|
9
10
|
throw new Error(`Could not find package.json in: ${cwd}`);
|
10
11
|
}
|
package/dist/util.mjs
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
import { dirname, join } from 'node:path';
|
2
|
-
import {
|
2
|
+
import { getProjectRoot } from 'storybook/internal/common';
|
3
|
+
import { findUpSync } from 'find-up';
|
3
4
|
export const findDistFile = (cwd, relativePath) => {
|
4
|
-
const nearestPackageJson = findUpSync('package.json', { cwd });
|
5
|
+
const nearestPackageJson = findUpSync('package.json', { cwd, stopAt: getProjectRoot() });
|
5
6
|
if (!nearestPackageJson) {
|
6
7
|
throw new Error(`Could not find package.json in: ${cwd}`);
|
7
8
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/ember",
|
3
|
-
"version": "9.0.
|
3
|
+
"version": "9.0.12",
|
4
4
|
"description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.",
|
5
5
|
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/frameworks/ember",
|
6
6
|
"bugs": {
|
@@ -49,10 +49,10 @@
|
|
49
49
|
"prep": "jiti ../../../scripts/prepare/tsc.ts"
|
50
50
|
},
|
51
51
|
"dependencies": {
|
52
|
-
"@storybook/builder-webpack5": "9.0.
|
52
|
+
"@storybook/builder-webpack5": "9.0.12",
|
53
53
|
"@storybook/global": "^5.0.0",
|
54
54
|
"babel-loader": "9.1.3",
|
55
|
-
"find-up": "^
|
55
|
+
"find-up": "^7.0.0"
|
56
56
|
},
|
57
57
|
"devDependencies": {
|
58
58
|
"ember-source": "~3.28.1",
|
@@ -65,7 +65,7 @@
|
|
65
65
|
"ember-source": "~3.28.1 || ^4.0.0",
|
66
66
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
67
67
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
68
|
-
"storybook": "^9.0.
|
68
|
+
"storybook": "^9.0.12"
|
69
69
|
},
|
70
70
|
"engines": {
|
71
71
|
"node": ">=20.0.0"
|