Skip to content

Commit

Permalink
chore: rename files to *.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard committed Sep 28, 2022
1 parent 34a9b60 commit 92fdc2d
Show file tree
Hide file tree
Showing 16 changed files with 3 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion jest.config.js → jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable strict */
/* eslint-disable tsdoc/syntax */
/* eslint-disable strict */

'use strict'

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/@sanity/server/src/aliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function getAliases(opts: {monorepo?: SanityMonorepo}): Record<string, st
// Load monorepo aliases (if the current Studio is located within the sanity monorepo)
// This is done in order for the Vite server to use the source files instead of
// the compiled output, allowing for a better dev experience.
const aliasesPath = path.join(monorepo.path, 'dev', 'aliases')
const aliasesPath = path.resolve(monorepo.path, 'dev/aliases.cjs')

// eslint-disable-next-line import/no-dynamic-require
const devAliases: Record<string, string> = require(aliasesPath)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.settings",
"include": ["**/*/package.config.ts", "./dev/aliases.js", "./scripts", "./test"],
"include": ["**/*/package.config.ts", "./dev/aliases.cjs", "./scripts", "./test"],
"exclude": ["./test/v2-studio"],
"compilerOptions": {
"emitDeclarationOnly": true,
Expand Down

0 comments on commit 92fdc2d

Please sign in to comment.