Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed May 18, 2024
1 parent b7445ee commit 9bd2142
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
36 changes: 18 additions & 18 deletions code/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,58 +119,58 @@
"typesVersions": {
"*": {
"*": [
"dist/index.d.ts"
"./dist/index.d.ts"
],
"dist/node-logger": [
"dist/node-logger/index.d.ts"
"./dist/node-logger/index.d.ts"
],
"dist/client-logger": [
"dist/client-logger/index.d.ts"
"./dist/client-logger/index.d.ts"
],
"dist/core-events": [
"dist/core-events/index.d.ts"
"./dist/core-events/index.d.ts"
],
"dist/manager-errors": [
"dist/manager-errors.d.ts"
"./dist/manager-errors.d.ts"
],
"dist/preview-errors": [
"dist/preview-errors.d.ts"
"./dist/preview-errors.d.ts"
],
"dist/server-errors": [
"dist/server-errors.d.ts"
"./dist/server-errors.d.ts"
],
"dist/channels": [
"dist/channels/index.d.ts"
"./dist/channels/index.d.ts"
],
"dist/types": [
"dist/types/index.d.ts"
"./dist/types/index.d.ts"
],
"dist/csf-tools": [
"dist/csf-tools/index.d.ts"
"./dist/csf-tools/index.d.ts"
],
"dist/common": [
"dist/common/index.d.ts"
"./dist/common/index.d.ts"
],
"dist/telemetry": [
"dist/telemetry/index.d.ts"
"./dist/telemetry/index.d.ts"
],
"dist/preview-api": [
"dist/preview-api/index.d.ts"
"./dist/preview-api/index.d.ts"
],
"dist/instrumenter": [
"dist/instrumenter/index.d.ts"
"./dist/instrumenter/index.d.ts"
],
"dist/router": [
"dist/router/index.d.ts"
"./dist/router/index.d.ts"
],
"dist/theming": [
"dist/theming/index.d.ts"
"./dist/theming/index.d.ts"
],
"dist/theming/create": [
"dist/theming/create.d.ts"
"./dist/theming/create.d.ts"
],
"dist/docs-tools": [
"dist/docs-tools/index.d.ts"
"./dist/docs-tools/index.d.ts"
]
}
},
Expand Down
4 changes: 2 additions & 2 deletions code/core/scripts/prep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ async function generatePackageJsonFile() {

pkgJson.typesVersions = {
'*': {
'*': ['dist/index.d.ts'],
'*': ['./dist/index.d.ts'],
...entries.reduce<Record<string, string[]>>((acc, entry) => {
let main = relative(cwd, entry.file).replace('src', 'dist');
if (main === './dist/index.ts') {
Expand All @@ -316,7 +316,7 @@ async function generatePackageJsonFile() {
return acc;
}

const content = [main.replace('.ts', '.d.ts')];
const content = ['./' + main.replace('.ts', '.d.ts')];
acc[key] = content;
return acc;
}, {}),
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/angular/src/builders/utils/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BuilderContext } from '@angular-devkit/architect';
import { JsonObject, logging } from '@angular-devkit/core';
import { sync as findUpSync } from 'find-up';
import { BrowserBuilderOptions } from '@angular-devkit/build-angular';
import { logger } from '@storybook/code/dist/node-logger';
import { logger } from '@storybook/core/dist/node-logger';

export type AngularBuilderOptions = BrowserBuilderOptions & {
browserTarget?: string | null;
Expand Down

0 comments on commit 9bd2142

Please sign in to comment.