Skip to content

Commit

Permalink
Remove index naming convention on all files
Browse files Browse the repository at this point in the history
  • Loading branch information
mattphillips committed Jan 25, 2022
1 parent e04370c commit e61baa2
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"README.md"
],
"scripts": {
"build": "babel src -d dist --ignore \"**/*.test.js\" && yarn build:esmodule",
"build": "babel src -d dist && yarn build:esmodule",
"build:esmodule": "rm -rf dist-es && mkdir dist-es && cp -r src/* dist-es && rm -rf dist-es/**/*.test.js",
"prepublish": "yarn build",
"lint": "eslint src",
Expand Down
2 changes: 1 addition & 1 deletion src/added/index.js → src/added.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isEmpty, isObject, hasOwnProperty } from '../utils';
import { isEmpty, isObject, hasOwnProperty } from './utils';

const addedDiff = (lhs, rhs) => {

Expand Down
2 changes: 1 addition & 1 deletion src/arrayDiff/index.js → src/arrayDiff.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isDate, isEmpty, isObject, hasOwnProperty } from '../utils';
import { isDate, isEmpty, isObject, hasOwnProperty } from './utils';

const diff = (lhs, rhs) => {
if (lhs === rhs) return {}; // equal return no diff
Expand Down
2 changes: 1 addition & 1 deletion src/deleted/index.js → src/deleted.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isEmpty, isObject, hasOwnProperty } from '../utils';
import { isEmpty, isObject, hasOwnProperty } from './utils';

const deletedDiff = (lhs, rhs) => {
if (lhs === rhs || !isObject(lhs) || !isObject(rhs)) return {};
Expand Down
6 changes: 3 additions & 3 deletions src/detailed/index.js → src/detailed.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import addedDiff from '../added';
import deletedDiff from '../deleted';
import updatedDiff from '../updated';
import addedDiff from './added';
import deletedDiff from './deleted';
import updatedDiff from './updated';

const detailedDiff = (lhs, rhs) => ({
added: addedDiff(lhs, rhs),
Expand Down
2 changes: 1 addition & 1 deletion src/diff/index.js → src/diff.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isDate, isEmptyObject, isObject, hasOwnProperty } from '../utils';
import { isDate, isEmptyObject, isObject, hasOwnProperty } from '../src/utils';

const diff = (lhs, rhs) => {
if (lhs === rhs) return {}; // equal return no diff
Expand Down
2 changes: 1 addition & 1 deletion src/updated/index.js → src/updated.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isDate, isEmptyObject, isObject, hasOwnProperty } from '../utils';
import { isDate, isEmptyObject, isObject, hasOwnProperty } from './utils';

const updatedDiff = (lhs, rhs) => {
if (lhs === rhs) return {};
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/added/index.test.js → test/added.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import addedDiff from './';
import addedDiff from '../src/added';

describe('.addedDiff', () => {

Expand Down
2 changes: 1 addition & 1 deletion src/arrayDiff/index.test.js → test/arrayDiff.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import diff from './';
import diff from '../src/arrayDiff';

describe('.arrayDiff', () => {

Expand Down
2 changes: 1 addition & 1 deletion src/deleted/index.test.js → test/deleted.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import deletedDiff from './';
import deletedDiff from '../src/deleted';

describe('.deletedDiff', () => {

Expand Down
2 changes: 1 addition & 1 deletion src/diff/index.test.js → test/diff.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import diff from './';
import diff from '../src/diff';

describe('.diff', () => {

Expand Down
2 changes: 1 addition & 1 deletion src/preserveArray.test.js → test/preserveArray.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import preserveArray from './preserveArray';
import preserveArray from '../src/preserveArray';

describe('.preserveArray', () => {
test('returns diff with nested objects converted back to arrays when property is deleted', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/updated/index.test.js → test/updated.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import updatedDiff from './';
import updatedDiff from '../src/updated';

describe('.updatedDiff', () => {

Expand Down
2 changes: 1 addition & 1 deletion src/utils/index.test.js → test/utils.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isDate, isEmpty, isObject } from './';
import { isDate, isEmpty, isObject } from '../src/utils';

describe('utils', () => {

Expand Down

0 comments on commit e61baa2

Please sign in to comment.