Skip to content

Commit

Permalink
Revert changes to file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Sep 25, 2024
1 parent f02c0c4 commit 4c8a1b8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
".": {
"import": {
"types": "./src/index.d.mts",
"default": "./src/index.js"
"default": "./src/index.mjs"
}
}
},
"main": "src/index.js",
"main": "./src/index.mjs",
"types": "./src/index.d.mts",
"files": [
"src/",
"!src/**/*.test.js"
"!src/**/*.test.mjs"
],
"scripts": {
"lint:changelog": "auto-changelog validate",
Expand Down
2 changes: 1 addition & 1 deletion packages/base/src/index.js → packages/base/src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import promise from 'eslint-plugin-promise';
import globals from 'globals';
import { createRequire } from 'module';

import { createConfig } from './utils.js';
import { createConfig } from './utils.mjs';

// TODO: Use import attributes when ESLint supports them.
const customRequire = createRequire(import.meta.url);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ESLint } from 'eslint';
import { describe, it, expect } from 'vitest';

import config from './index.js';
import config from './index.mjs';

describe('index', () => {
it('is a valid ESLint config', async () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, it, expect } from 'vitest';

import { createConfig } from './utils.js';
import { createConfig } from './utils.mjs';

describe('createConfig', () => {
it('returns a config array for a single config', () => {
Expand Down

0 comments on commit 4c8a1b8

Please sign in to comment.