@storybook/addon-svelte-csf
Advanced tools
Comparing version 3.0.5--canary.113.25a4298.0 to 3.0.5--canary.113.70c1500.0
@@ -6,3 +6,3 @@ // This file is a rewrite of `@sveltejs/vite-plugin-svelte` without the `Vite` | ||
import fs from 'fs'; | ||
import { logger } from '@storybook/client-logger'; | ||
import { logger } from '@storybook/node-logger'; | ||
import path from 'path'; | ||
@@ -9,0 +9,0 @@ import { pathExists } from 'fs-extra'; |
export declare function getNameFromFilename(filename: string): string; | ||
declare function transformSvelteStories(code: string): any; | ||
declare function transformSvelteStories(code: string): string; | ||
export default transformSvelteStories; |
@@ -5,3 +5,4 @@ import dedent from 'dedent'; | ||
import { readFileSync } from 'fs'; | ||
const parser = fileURLToPath(new URL('./collect-stories.js', import.meta.url)); | ||
const parser = fileURLToPath(new URL('./collect-stories.js', import.meta.url)) | ||
.replace(/\\/g, "\\\\"); // For Windows paths; | ||
// From https://github.com/sveltejs/svelte/blob/8db3e8d0297e052556f0b6dde310ef6e197b8d18/src/compiler/compile/utils/get_name_from_filename.ts | ||
@@ -8,0 +9,0 @@ // Copied because it is not exported from the compiler |
@@ -8,3 +8,4 @@ import * as svelte from 'svelte/compiler'; | ||
import { readFileSync } from 'fs'; | ||
const parser = fileURLToPath(new URL('../parser/collect-stories.js', import.meta.url)); | ||
const parser = fileURLToPath(new URL('../parser/collect-stories.js', import.meta.url)) | ||
.replace(/\\/g, "\\\\"); // For Windows paths | ||
export default function csfPlugin(svelteOptions) { | ||
@@ -11,0 +12,0 @@ const include = /\.stories\.svelte$/; |
import { fileURLToPath } from 'url'; | ||
import { svelteIndexer } from './indexer.js'; | ||
export function managerEntries(entry = []) { | ||
return [...entry, fileURLToPath(new URL('./manager.js', import.meta.url))]; | ||
return [ | ||
...entry, | ||
fileURLToPath(new URL('./manager.js', import.meta.url)) | ||
.replace(/\\/g, "\\\\"), // For Windows paths | ||
]; | ||
} | ||
@@ -18,3 +22,4 @@ export function webpack(config) { | ||
{ | ||
loader: fileURLToPath(new URL('../parser/svelte-stories-loader.js', import.meta.url)), | ||
loader: fileURLToPath(new URL('../parser/svelte-stories-loader.js', import.meta.url)) | ||
.replace(/\\/g, "\\\\"), // For Windows paths | ||
}, | ||
@@ -21,0 +26,0 @@ ], |
{ | ||
"name": "@storybook/addon-svelte-csf", | ||
"version": "3.0.5--canary.113.25a4298.0", | ||
"version": "3.0.5--canary.113.70c1500.0", | ||
"description": "Allows to write stories in Svelte syntax", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
"clean": "rimraf ./dist", | ||
"build": "svelte-package -i ./src -t", | ||
"build": "svelte-package --input ./src --types", | ||
"prepublish": "yarn clean && yarn build", | ||
@@ -53,3 +53,3 @@ "test": "vitest run", | ||
"magic-string": "^0.30.1", | ||
"ts-dedent": "^2.2.0" | ||
"dedent": "^1.2.0" | ||
}, | ||
@@ -56,0 +56,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
49845
1260
1
15
+ Addeddedent@^1.2.0
+ Addeddedent@1.5.3(transitive)
- Removedts-dedent@^2.2.0