Skip to content

Commit f644561

Browse files
committed
Fix remote,loca datasources filenames
1 parent 4b508b7 commit f644561

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/new_package/new-package-file-creation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export function createRemoteDataSourceTemplate(
249249
targetDirectory: string
250250
) {
251251
const snakeCasePackageName = changeCase.snakeCase(packageName.toLowerCase());
252-
const targetPath = `${targetDirectory}/remote_datasource.dart`;
252+
const targetPath = `${targetDirectory}/remote_data_source.dart`;
253253
if (existsSync(targetPath)) {
254254
throw Error(
255255
`${snakeCasePackageName}_datasource.dart inside ${snakeCasePackageName} already exists`
@@ -276,7 +276,7 @@ export function createLocalDataSourceTemplate(
276276
targetDirectory: string
277277
) {
278278
const snakeCasePackageName = changeCase.snakeCase(packageName.toLowerCase());
279-
const targetPath = `${targetDirectory}/local_datasource.dart`;
279+
const targetPath = `${targetDirectory}/local_data_source.dart`;
280280
if (existsSync(targetPath)) {
281281
throw Error(
282282
`${snakeCasePackageName}_datasource.dart inside ${snakeCasePackageName} already exists`

0 commit comments

Comments
 (0)