Skip to content

Commit

Permalink
Format all files
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Aug 13, 2024
1 parent 6c748fc commit 6e48e96
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
22 changes: 11 additions & 11 deletions src/createSelectorCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,17 +414,17 @@ export function createSelectorCreator<
// @ts-ignore
lastResult = memoizedResultFunc.apply(null, inputSelectorResults)

if (process.env.NODE_ENV !== 'production') {
const { devModeChecks = {} } = combinedOptions
const { identityFunctionCheck, inputStabilityCheck } =
getDevModeChecksExecutionInfo(firstRun, devModeChecks)
if (identityFunctionCheck.shouldRun) {
identityFunctionCheck.run(
resultFunc as Combiner<InputSelectors, Result>,
inputSelectorResults,
lastResult
)
}
if (process.env.NODE_ENV !== 'production') {
const { devModeChecks = {} } = combinedOptions
const { identityFunctionCheck, inputStabilityCheck } =
getDevModeChecksExecutionInfo(firstRun, devModeChecks)
if (identityFunctionCheck.shouldRun) {
identityFunctionCheck.run(
resultFunc as Combiner<InputSelectors, Result>,
inputSelectorResults,
lastResult,
)
}

if (inputStabilityCheck.shouldRun) {
// make a second copy of the params, to check if we got the same results
Expand Down
20 changes: 10 additions & 10 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if (process.env.NODE_ENV === 'production') {
module.exports = require('./reselect.production.min.cjs')
} else {
module.exports = require('./reselect.development.cjs')
}`
}`,
)
}

Expand Down Expand Up @@ -61,43 +61,43 @@ export default defineConfig((options): Options[] => {
},
format: ['esm'],
outExtension: () => ({ js: '.mjs' }),
minify: true
minify: true,
},
{
...commonOptions,
name: 'CJS Development',
entry: {
'reselect.development': 'src/index.ts'
'reselect.development': 'src/index.ts',
},
env: {
NODE_ENV: 'development'
NODE_ENV: 'development',
},
format: ['cjs'],
outDir: './dist/cjs/',
outExtension: () => ({ js: '.cjs' })
outExtension: () => ({ js: '.cjs' }),
},
{
...commonOptions,
name: 'CJS production',
entry: {
'reselect.production.min': 'src/index.ts'
'reselect.production.min': 'src/index.ts',
},
env: {
NODE_ENV: 'production'
NODE_ENV: 'production',
},
format: ['cjs'],
outDir: './dist/cjs/',
outExtension: () => ({ js: '.cjs' }),
minify: true,
onSuccess: async () => {
await writeCommonJSEntry()
}
},
},
{
...commonOptions,
name: 'CJS Type Definitions',
format: ['cjs'],
dts: { only: true }
}
dts: { only: true },
},
]
})

0 comments on commit 6e48e96

Please sign in to comment.