From 414bd73bc8e0d9d7b057752a8e5b97415b8f255a Mon Sep 17 00:00:00 2001 From: Cody Kaup Date: Fri, 27 Sep 2024 17:09:11 -0500 Subject: [PATCH] Fix lint errors from unicorn/filename-case --- bin-src/register.js | 2 +- bin-src/trace.ts | 2 +- ...im-stats-file.test.ts => trimStatsFile.test.ts} | 2 +- bin-src/{trim-stats-file.ts => trimStatsFile.ts} | 2 +- .../dependencyChanges/berry-chalk-package.json | 2 +- .../__mocks__/dependencyChanges/berry-package.json | 2 +- node-src/git/getParentCommits.test.ts | 14 +++++++------- .../git/mocks/{double-loop.ts => doubleLoop.ts} | 0 node-src/git/mocks/{long-line.ts => longLine.ts} | 0 node-src/git/mocks/{long-loop.ts => longLoop.ts} | 0 node-src/git/mocks/{mock-index.ts => mockIndex.ts} | 0 .../git/mocks/{simple-loop.ts => simpleLoop.ts} | 0 .../mocks/{three-parents.ts => threeParents.ts} | 0 node-src/git/mocks/{two-roots.ts => twoRoots.ts} | 0 node-src/index.test.ts | 4 ++-- node-src/index.ts | 8 ++++---- ...getDNSResolveAgent.ts => getDnsResolveAgent.ts} | 0 node-src/io/{GraphQLClient.ts => graphqlClient.ts} | 2 +- node-src/io/{HTTPClient.ts => httpClient.ts} | 2 +- .../lib/{FileReaderBlob.ts => fileReaderBlob.ts} | 0 node-src/lib/getDependentStoryFiles.ts | 2 +- .../lib/{LoggingRenderer.ts => loggingRenderer.ts} | 0 .../lib/{NonTTYRenderer.ts => nonTtyRenderer.ts} | 0 node-src/lib/uploadFiles.ts | 2 +- node-src/lib/uploadMetadataFiles.ts | 2 +- node-src/lib/uploadZip.ts | 2 +- .../tasks/{read-stats-file.ts => readStatsFile.ts} | 0 node-src/tasks/snapshot.ts | 2 +- node-src/tasks/upload.test.ts | 4 ++-- node-src/tasks/upload.ts | 2 +- node-src/types.ts | 4 ++-- .../ui/messages/errors/graphqlError.stories.ts | 2 +- node-src/ui/messages/errors/graphqlError.ts | 2 +- ...noCSFGlobs.stories.ts => noCsfGlobs.stories.ts} | 2 +- .../errors/{noCSFGlobs.ts => noCsfGlobs.ts} | 0 .../{speedUpCI.stories.ts => speedUpCi.stories.ts} | 2 +- .../messages/info/{speedUpCI.ts => speedUpCi.ts} | 0 subdir/package.json | 2 +- test-stories/{A.js => a.js} | 0 test-stories/{AWrap.js => aWrap.js} | 0 test-stories/{B.js => b.js} | 0 test-stories/{Star.js => star.js} | 0 .../{Tests.stories.js => tests.stories.js} | 4 ++-- 43 files changed, 38 insertions(+), 38 deletions(-) rename bin-src/{trim-stats-file.test.ts => trimStatsFile.test.ts} (90%) rename bin-src/{trim-stats-file.ts => trimStatsFile.ts} (96%) rename node-src/git/mocks/{double-loop.ts => doubleLoop.ts} (100%) rename node-src/git/mocks/{long-line.ts => longLine.ts} (100%) rename node-src/git/mocks/{long-loop.ts => longLoop.ts} (100%) rename node-src/git/mocks/{mock-index.ts => mockIndex.ts} (100%) rename node-src/git/mocks/{simple-loop.ts => simpleLoop.ts} (100%) rename node-src/git/mocks/{three-parents.ts => threeParents.ts} (100%) rename node-src/git/mocks/{two-roots.ts => twoRoots.ts} (100%) rename node-src/io/{getDNSResolveAgent.ts => getDnsResolveAgent.ts} (100%) rename node-src/io/{GraphQLClient.ts => graphqlClient.ts} (97%) rename node-src/io/{HTTPClient.ts => httpClient.ts} (98%) rename node-src/lib/{FileReaderBlob.ts => fileReaderBlob.ts} (100%) rename node-src/lib/{LoggingRenderer.ts => loggingRenderer.ts} (100%) rename node-src/lib/{NonTTYRenderer.ts => nonTtyRenderer.ts} (100%) rename node-src/tasks/{read-stats-file.ts => readStatsFile.ts} (100%) rename node-src/ui/messages/errors/{noCSFGlobs.stories.ts => noCsfGlobs.stories.ts} (95%) rename node-src/ui/messages/errors/{noCSFGlobs.ts => noCsfGlobs.ts} (100%) rename node-src/ui/messages/info/{speedUpCI.stories.ts => speedUpCi.stories.ts} (73%) rename node-src/ui/messages/info/{speedUpCI.ts => speedUpCi.ts} (100%) rename test-stories/{A.js => a.js} (100%) rename test-stories/{AWrap.js => aWrap.js} (100%) rename test-stories/{B.js => b.js} (100%) rename test-stories/{Star.js => star.js} (100%) rename test-stories/{Tests.stories.js => tests.stories.js} (96%) diff --git a/bin-src/register.js b/bin-src/register.js index a8721fc7a..2adcbfe4a 100755 --- a/bin-src/register.js +++ b/bin-src/register.js @@ -7,7 +7,7 @@ const commands = { init: () => require('./init').main(process.argv.slice(3)), main: () => require('./main').main(process.argv.slice(2)), trace: () => require('./trace').main(process.argv.slice(3)), - 'trim-stats-file': () => require('./trim-stats-file').main(process.argv.slice(3)), + 'trim-stats-file': () => require('./trimStatsFile').main(process.argv.slice(3)), }; (commands[process.argv[2]] || commands.main)(); diff --git a/bin-src/trace.ts b/bin-src/trace.ts index f5ed2420c..d2ad2d3ba 100644 --- a/bin-src/trace.ts +++ b/bin-src/trace.ts @@ -2,7 +2,7 @@ import meow from 'meow'; import { getDependentStoryFiles } from '../node-src/lib/getDependentStoryFiles'; import { isPackageManifestFile } from '../node-src/lib/utils'; -import { readStatsFile } from '../node-src/tasks/read-stats-file'; +import { readStatsFile } from '../node-src/tasks/readStatsFile'; import { Context } from '../node-src/types'; /** diff --git a/bin-src/trim-stats-file.test.ts b/bin-src/trimStatsFile.test.ts similarity index 90% rename from bin-src/trim-stats-file.test.ts rename to bin-src/trimStatsFile.test.ts index ce8b67d40..3b7fd1d14 100644 --- a/bin-src/trim-stats-file.test.ts +++ b/bin-src/trimStatsFile.test.ts @@ -1,7 +1,7 @@ import mockfs from 'mock-fs'; import { afterEach, describe, expect, it } from 'vitest'; -import { readStatsFile } from '../node-src/tasks/read-stats-file'; +import { readStatsFile } from '../node-src/tasks/readStatsFile'; import * as trimmedFile from './__mocks__/previewStatsJson/preview-stats.trimmed.json'; mockfs({ diff --git a/bin-src/trim-stats-file.ts b/bin-src/trimStatsFile.ts similarity index 96% rename from bin-src/trim-stats-file.ts rename to bin-src/trimStatsFile.ts index 24863b941..9d5f7a647 100644 --- a/bin-src/trim-stats-file.ts +++ b/bin-src/trimStatsFile.ts @@ -1,6 +1,6 @@ import { outputFile } from 'fs-extra'; -import { readStatsFile } from '../node-src/tasks/read-stats-file'; +import { readStatsFile } from '../node-src/tasks/readStatsFile'; const dedupe = (arr: T[]) => [...new Set(arr)]; const isUserCode = ({ name, moduleName = name }: { name?: string; moduleName?: string }) => diff --git a/node-src/__mocks__/dependencyChanges/berry-chalk-package.json b/node-src/__mocks__/dependencyChanges/berry-chalk-package.json index aa89b779a..d7d2919dc 100644 --- a/node-src/__mocks__/dependencyChanges/berry-chalk-package.json +++ b/node-src/__mocks__/dependencyChanges/berry-chalk-package.json @@ -59,7 +59,7 @@ "lint:package": "sort-package-json", "release": "node scripts/release.js", "trace": "node -r esm bin-src/trace.js", - "trim-stats": "node -r esm bin-src/trim-stats-file.js", + "trim-stats": "node -r esm bin-src/trimStatsFile.js", "storybook": "start-storybook -p 9009 -s static", "test": "jest", "prepare": "husky install && npm run build", diff --git a/node-src/__mocks__/dependencyChanges/berry-package.json b/node-src/__mocks__/dependencyChanges/berry-package.json index 68a466700..bf3c8b9f2 100644 --- a/node-src/__mocks__/dependencyChanges/berry-package.json +++ b/node-src/__mocks__/dependencyChanges/berry-package.json @@ -59,7 +59,7 @@ "lint:package": "sort-package-json", "release": "node scripts/release.js", "trace": "node -r esm bin-src/trace.js", - "trim-stats": "node -r esm bin-src/trim-stats-file.js", + "trim-stats": "node -r esm bin-src/trimStatsFile.js", "storybook": "start-storybook -p 9009 -s static", "test": "jest", "prepare": "husky install && npm run build", diff --git a/node-src/git/getParentCommits.test.ts b/node-src/git/getParentCommits.test.ts index 3c35c5823..ed5ee8661 100644 --- a/node-src/git/getParentCommits.test.ts +++ b/node-src/git/getParentCommits.test.ts @@ -8,13 +8,13 @@ import { beforeAll, describe, expect, it, vi } from 'vitest'; import generateGitRepository from './generateGitRepository'; import { getParentCommits } from './getParentCommits'; import { getCommit } from './git'; -import doubleLoopDescription from './mocks/double-loop'; -import longLineDescription from './mocks/long-line'; -import longLoopDescription from './mocks/long-loop'; -import createMockIndex from './mocks/mock-index'; -import simpleLoopDescription from './mocks/simple-loop'; -import threeParentsDescription from './mocks/three-parents'; -import twoRootsDescription from './mocks/two-roots'; +import doubleLoopDescription from './mocks/doubleLoop'; +import longLineDescription from './mocks/longLine'; +import longLoopDescription from './mocks/longLoop'; +import createMockIndex from './mocks/mockIndex'; +import simpleLoopDescription from './mocks/simpleLoop'; +import threeParentsDescription from './mocks/threeParents'; +import twoRootsDescription from './mocks/twoRoots'; const descriptions = { simpleLoop: simpleLoopDescription, diff --git a/node-src/git/mocks/double-loop.ts b/node-src/git/mocks/doubleLoop.ts similarity index 100% rename from node-src/git/mocks/double-loop.ts rename to node-src/git/mocks/doubleLoop.ts diff --git a/node-src/git/mocks/long-line.ts b/node-src/git/mocks/longLine.ts similarity index 100% rename from node-src/git/mocks/long-line.ts rename to node-src/git/mocks/longLine.ts diff --git a/node-src/git/mocks/long-loop.ts b/node-src/git/mocks/longLoop.ts similarity index 100% rename from node-src/git/mocks/long-loop.ts rename to node-src/git/mocks/longLoop.ts diff --git a/node-src/git/mocks/mock-index.ts b/node-src/git/mocks/mockIndex.ts similarity index 100% rename from node-src/git/mocks/mock-index.ts rename to node-src/git/mocks/mockIndex.ts diff --git a/node-src/git/mocks/simple-loop.ts b/node-src/git/mocks/simpleLoop.ts similarity index 100% rename from node-src/git/mocks/simple-loop.ts rename to node-src/git/mocks/simpleLoop.ts diff --git a/node-src/git/mocks/three-parents.ts b/node-src/git/mocks/threeParents.ts similarity index 100% rename from node-src/git/mocks/three-parents.ts rename to node-src/git/mocks/threeParents.ts diff --git a/node-src/git/mocks/two-roots.ts b/node-src/git/mocks/twoRoots.ts similarity index 100% rename from node-src/git/mocks/two-roots.ts rename to node-src/git/mocks/twoRoots.ts diff --git a/node-src/index.test.ts b/node-src/index.test.ts index 8ad6fc790..d0defdc3f 100644 --- a/node-src/index.test.ts +++ b/node-src/index.test.ts @@ -9,7 +9,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { getGitInfo, runAll } from '.'; import * as git from './git/git'; -import { DNSResolveAgent } from './io/getDNSResolveAgent'; +import { DNSResolveAgent } from './io/getDnsResolveAgent'; import * as checkPackageJson from './lib/checkPackageJson'; import getEnv from './lib/getEnv'; import parseArgs from './lib/parseArgs'; @@ -275,7 +275,7 @@ const mockStats = { }; const mockStatsFile = Readable.from([JSON.stringify(mockStats)]); -vi.mock('./tasks/read-stats-file', () => ({ +vi.mock('./tasks/readStatsFile', () => ({ readStatsFile: () => Promise.resolve(mockStats), })); diff --git a/node-src/index.ts b/node-src/index.ts index 77256efee..96731c6c9 100644 --- a/node-src/index.ts +++ b/node-src/index.ts @@ -12,8 +12,8 @@ import { getUncommittedHash, getUserEmail, } from './git/git'; -import GraphQLClient from './io/GraphQLClient'; -import HTTPClient from './io/HTTPClient'; +import GraphQLClient from './io/graphqlClient'; +import HTTPClient from './io/httpClient'; import checkForUpdates from './lib/checkForUpdates'; import checkPackageJson from './lib/checkPackageJson'; import { isE2EBuild } from './lib/e2e'; @@ -22,8 +22,8 @@ import { getConfiguration } from './lib/getConfiguration'; import getEnv from './lib/getEnv'; import getOptions from './lib/getOptions'; import { createLogger } from './lib/log'; -import LoggingRenderer from './lib/LoggingRenderer'; -import NonTTYRenderer from './lib/NonTTYRenderer'; +import LoggingRenderer from './lib/loggingRenderer'; +import NonTTYRenderer from './lib/nonTtyRenderer'; import parseArgs from './lib/parseArgs'; import { exitCodes, setExitCode } from './lib/setExitCode'; import { uploadMetadataFiles } from './lib/uploadMetadataFiles'; diff --git a/node-src/io/getDNSResolveAgent.ts b/node-src/io/getDnsResolveAgent.ts similarity index 100% rename from node-src/io/getDNSResolveAgent.ts rename to node-src/io/getDnsResolveAgent.ts diff --git a/node-src/io/GraphQLClient.ts b/node-src/io/graphqlClient.ts similarity index 97% rename from node-src/io/GraphQLClient.ts rename to node-src/io/graphqlClient.ts index b2a49caa5..413b010ae 100644 --- a/node-src/io/GraphQLClient.ts +++ b/node-src/io/graphqlClient.ts @@ -1,7 +1,7 @@ import retry from 'async-retry'; import { InitialContext } from '..'; -import HTTPClient, { HTTPClientOptions } from './HTTPClient'; +import HTTPClient, { HTTPClientOptions } from './httpClient'; const RETRYABLE_ERROR_CODE = 'RETRYABLE_ERROR_CODE'; diff --git a/node-src/io/HTTPClient.ts b/node-src/io/httpClient.ts similarity index 98% rename from node-src/io/HTTPClient.ts rename to node-src/io/httpClient.ts index 9484318bf..92d09ba39 100644 --- a/node-src/io/HTTPClient.ts +++ b/node-src/io/httpClient.ts @@ -4,7 +4,7 @@ import { HttpsProxyAgentOptions } from 'https-proxy-agent'; import fetch, { RequestInit, Response } from 'node-fetch'; import { Context } from '../types'; -import getDNSResolveAgent from './getDNSResolveAgent'; +import getDNSResolveAgent from './getDnsResolveAgent'; import getProxyAgent from './getProxyAgent'; export class HTTPClientError extends Error { diff --git a/node-src/lib/FileReaderBlob.ts b/node-src/lib/fileReaderBlob.ts similarity index 100% rename from node-src/lib/FileReaderBlob.ts rename to node-src/lib/fileReaderBlob.ts diff --git a/node-src/lib/getDependentStoryFiles.ts b/node-src/lib/getDependentStoryFiles.ts index 1b984b2cb..ea76a3726 100644 --- a/node-src/lib/getDependentStoryFiles.ts +++ b/node-src/lib/getDependentStoryFiles.ts @@ -2,7 +2,7 @@ import path from 'path'; import { getRepositoryRoot } from '../git/git'; import { Context, Module, Reason, Stats } from '../types'; -import noCSFGlobs from '../ui/messages/errors/noCSFGlobs'; +import noCSFGlobs from '../ui/messages/errors/noCsfGlobs'; import tracedAffectedFiles from '../ui/messages/info/tracedAffectedFiles'; import bailFile from '../ui/messages/warnings/bailFile'; import { isPackageManifestFile, matchesFile } from './utils'; diff --git a/node-src/lib/LoggingRenderer.ts b/node-src/lib/loggingRenderer.ts similarity index 100% rename from node-src/lib/LoggingRenderer.ts rename to node-src/lib/loggingRenderer.ts diff --git a/node-src/lib/NonTTYRenderer.ts b/node-src/lib/nonTtyRenderer.ts similarity index 100% rename from node-src/lib/NonTTYRenderer.ts rename to node-src/lib/nonTtyRenderer.ts diff --git a/node-src/lib/uploadFiles.ts b/node-src/lib/uploadFiles.ts index 119f67b73..5a808049d 100644 --- a/node-src/lib/uploadFiles.ts +++ b/node-src/lib/uploadFiles.ts @@ -4,7 +4,7 @@ import { FormData } from 'formdata-node'; import pLimit from 'p-limit'; import { Context, FileDesc, TargetInfo } from '../types'; -import { FileReaderBlob } from './FileReaderBlob'; +import { FileReaderBlob } from './fileReaderBlob'; export async function uploadFiles( ctx: Context, diff --git a/node-src/lib/uploadMetadataFiles.ts b/node-src/lib/uploadMetadataFiles.ts index f80c40c83..8b7c6f26c 100644 --- a/node-src/lib/uploadMetadataFiles.ts +++ b/node-src/lib/uploadMetadataFiles.ts @@ -2,7 +2,7 @@ import { stat, writeFileSync } from 'fs'; import path from 'path'; import { withFile } from 'tmp-promise'; -import { main as trimStatsFile } from '../../bin-src/trim-stats-file'; +import { main as trimStatsFile } from '../../bin-src/trimStatsFile'; import { Context, FileDesc } from '../types'; import metadataHtml from '../ui/html/metadata.html'; import uploadingMetadata from '../ui/messages/info/uploadingMetadata'; diff --git a/node-src/lib/uploadZip.ts b/node-src/lib/uploadZip.ts index b27f1617a..01425852a 100644 --- a/node-src/lib/uploadZip.ts +++ b/node-src/lib/uploadZip.ts @@ -3,7 +3,7 @@ import { filesize } from 'filesize'; import { FormData } from 'formdata-node'; import { Context, TargetInfo } from '../types'; -import { FileReaderBlob } from './FileReaderBlob'; +import { FileReaderBlob } from './fileReaderBlob'; export async function uploadZip( ctx: Context, diff --git a/node-src/tasks/read-stats-file.ts b/node-src/tasks/readStatsFile.ts similarity index 100% rename from node-src/tasks/read-stats-file.ts rename to node-src/tasks/readStatsFile.ts diff --git a/node-src/tasks/snapshot.ts b/node-src/tasks/snapshot.ts index a113ef902..e265231ff 100644 --- a/node-src/tasks/snapshot.ts +++ b/node-src/tasks/snapshot.ts @@ -5,7 +5,7 @@ import { Context, Task } from '../types'; import buildHasChanges from '../ui/messages/errors/buildHasChanges'; import buildHasErrors from '../ui/messages/errors/buildHasErrors'; import buildPassedMessage from '../ui/messages/info/buildPassed'; -import speedUpCI from '../ui/messages/info/speedUpCI'; +import speedUpCI from '../ui/messages/info/speedUpCi'; import { buildBroken, buildCanceled, diff --git a/node-src/tasks/upload.test.ts b/node-src/tasks/upload.test.ts index e336a113f..bdb4425a6 100644 --- a/node-src/tasks/upload.test.ts +++ b/node-src/tasks/upload.test.ts @@ -22,7 +22,7 @@ vi.mock('../lib/compress'); vi.mock('../lib/getDependentStoryFiles'); vi.mock('../lib/findChangedDependencies'); vi.mock('../lib/findChangedPackageFiles'); -vi.mock('./read-stats-file', () => ({ +vi.mock('./readStatsFile', () => ({ readStatsFile: () => Promise.resolve({ modules: [ @@ -34,7 +34,7 @@ vi.mock('./read-stats-file', () => ({ }), })); -vi.mock('../lib/FileReaderBlob', () => ({ +vi.mock('../lib/fileReaderBlob', () => ({ // eslint-disable-next-line @typescript-eslint/no-extraneous-class FileReaderBlob: class { constructor(_path: string, length: number, onProgress: (delta: number) => void) { diff --git a/node-src/tasks/upload.ts b/node-src/tasks/upload.ts index 92024b609..2ece327e9 100644 --- a/node-src/tasks/upload.ts +++ b/node-src/tasks/upload.ts @@ -31,7 +31,7 @@ import { uploading, validating, } from '../ui/tasks/upload'; -import { readStatsFile } from './read-stats-file'; +import { readStatsFile } from './readStatsFile'; interface PathSpec { pathname: string; diff --git a/node-src/types.ts b/node-src/types.ts index dc6af7740..70ab6bed9 100644 --- a/node-src/types.ts +++ b/node-src/types.ts @@ -1,6 +1,6 @@ import { InitialContext } from '.'; -import GraphQLClient from './io/GraphQLClient'; -import HTTPClient from './io/HTTPClient'; +import GraphQLClient from './io/graphqlClient'; +import HTTPClient from './io/httpClient'; import type { Configuration } from './lib/getConfiguration'; import { Env } from './lib/getEnv'; import { Logger } from './lib/log'; diff --git a/node-src/ui/messages/errors/graphqlError.stories.ts b/node-src/ui/messages/errors/graphqlError.stories.ts index 646bcbd40..674fdcd8d 100644 --- a/node-src/ui/messages/errors/graphqlError.stories.ts +++ b/node-src/ui/messages/errors/graphqlError.stories.ts @@ -1,4 +1,4 @@ -import { GraphQLError } from '../../../io/GraphQLClient'; +import { GraphQLError } from '../../../io/graphqlClient'; import graphqlError from './graphqlError'; export default { diff --git a/node-src/ui/messages/errors/graphqlError.ts b/node-src/ui/messages/errors/graphqlError.ts index e843eea2a..40b033031 100644 --- a/node-src/ui/messages/errors/graphqlError.ts +++ b/node-src/ui/messages/errors/graphqlError.ts @@ -1,7 +1,7 @@ import chalk from 'chalk'; import { dedent } from 'ts-dedent'; -import { GraphQLError } from '../../../io/GraphQLClient'; +import { GraphQLError } from '../../../io/graphqlClient'; import { error as icon } from '../../components/icons'; import link from '../../components/link'; diff --git a/node-src/ui/messages/errors/noCSFGlobs.stories.ts b/node-src/ui/messages/errors/noCsfGlobs.stories.ts similarity index 95% rename from node-src/ui/messages/errors/noCSFGlobs.stories.ts rename to node-src/ui/messages/errors/noCsfGlobs.stories.ts index f1bd6a654..40de09215 100644 --- a/node-src/ui/messages/errors/noCSFGlobs.stories.ts +++ b/node-src/ui/messages/errors/noCsfGlobs.stories.ts @@ -1,4 +1,4 @@ -import noCSFGlobs from './noCSFGlobs'; +import noCSFGlobs from './noCsfGlobs'; export default { title: 'CLI/Messages/Errors', diff --git a/node-src/ui/messages/errors/noCSFGlobs.ts b/node-src/ui/messages/errors/noCsfGlobs.ts similarity index 100% rename from node-src/ui/messages/errors/noCSFGlobs.ts rename to node-src/ui/messages/errors/noCsfGlobs.ts diff --git a/node-src/ui/messages/info/speedUpCI.stories.ts b/node-src/ui/messages/info/speedUpCi.stories.ts similarity index 73% rename from node-src/ui/messages/info/speedUpCI.stories.ts rename to node-src/ui/messages/info/speedUpCi.stories.ts index a6fb1a9fe..f57fdf885 100644 --- a/node-src/ui/messages/info/speedUpCI.stories.ts +++ b/node-src/ui/messages/info/speedUpCi.stories.ts @@ -1,4 +1,4 @@ -import speedUpCI from './speedUpCI'; +import speedUpCI from './speedUpCi'; export default { title: 'CLI/Messages/Info', diff --git a/node-src/ui/messages/info/speedUpCI.ts b/node-src/ui/messages/info/speedUpCi.ts similarity index 100% rename from node-src/ui/messages/info/speedUpCI.ts rename to node-src/ui/messages/info/speedUpCi.ts diff --git a/subdir/package.json b/subdir/package.json index 2f9671988..1ac82dfb2 100644 --- a/subdir/package.json +++ b/subdir/package.json @@ -4,7 +4,7 @@ "scripts": { "start": "start-storybook", "build": "build-storybook --webpack-stats-json --output-dir ../subdir-static", - "postbuild": "node -r esm ../bin-src/trim-stats-file.js ../subdir-static/preview-stats.json" + "postbuild": "node -r esm ../bin-src/trimStatsFile.js ../subdir-static/preview-stats.json" }, "dependencies": { "@storybook/react": "^6.3.7", diff --git a/test-stories/A.js b/test-stories/a.js similarity index 100% rename from test-stories/A.js rename to test-stories/a.js diff --git a/test-stories/AWrap.js b/test-stories/aWrap.js similarity index 100% rename from test-stories/AWrap.js rename to test-stories/aWrap.js diff --git a/test-stories/B.js b/test-stories/b.js similarity index 100% rename from test-stories/B.js rename to test-stories/b.js diff --git a/test-stories/Star.js b/test-stories/star.js similarity index 100% rename from test-stories/Star.js rename to test-stories/star.js diff --git a/test-stories/Tests.stories.js b/test-stories/tests.stories.js similarity index 96% rename from test-stories/Tests.stories.js rename to test-stories/tests.stories.js index 1cf9a9c98..6e309894e 100644 --- a/test-stories/Tests.stories.js +++ b/test-stories/tests.stories.js @@ -2,8 +2,8 @@ import React from 'react'; -import isChromatic from '..'; -import AComponent from './A'; +import isChromatic from '../isChromatic'; +import AComponent from './a'; export default { title: 'Tests',