Skip to content

Commit 2da7133

Browse files
committed
Rename mjs files to js
1 parent 087fdc5 commit 2da7133

10 files changed

+12
-14
lines changed

Diff for: jest.config.js

-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ module.exports = {
33
"\\.(css|less)$": "<rootDir>/src/testing/styleMock.js"
44
},
55
testEnvironment: "jsdom",
6-
moduleFileExtensions: ["js", "jsx", "mjs"],
7-
testMatch: [ "**/__tests__/**/*.?(m)[jt]s?(x)", "**/?(*.)+(spec|test).?(m)[jt]s?(x)" ]
86
};

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"watch-firefox": "webpack --config webpack/webpack.dev.js --env browser=firefox --watch",
99
"build-firefox": "webpack --config webpack/webpack.prod.js --env browser=firefox",
1010
"build-firefox-dev": "webpack --config webpack/webpack.dev.js --env browser=firefox",
11-
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
11+
"test": "jest",
1212
"clean": "rimraf dist",
1313
"zip": "npm run clean && npm run build && cd dist && bestzip ../wikitree-browser-extension.zip *"
1414
},

Diff for: src/content.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//import { createTopMenu } from "./core/common";
22

3-
import "./features/register_feature_options.mjs";
3+
import "./features/register_feature_options";
44

55
import "./features/agc/agc_content";
66
import "./features/akaNameLinks/akaNameLinks";

Diff for: src/core/options/options_registry.mjs renamed to src/core/options/options_registry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33
// an array of information about features and their options
4-
// This is constructed by the features registering their options in register_feature_options.mjs
4+
// This is constructed by the features registering their options in register_feature_options.js
55
const features = [
66
];
77

Diff for: src/core/options/options_storage.mjs renamed to src/core/options/options_storage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getDefaultOptionValuesForFeature } from "../../core/options/options_registry.mjs"
1+
import { getDefaultOptionValuesForFeature } from "./options_registry"
22

33
/*
44
This function returns a Promise so it can be used in a couple of different ways:

Diff for: src/features/agc/agc.test.mjs renamed to src/features/agc/agc.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ import fs from 'fs'
2727
import {fail} from 'assert';
2828

2929
// need to include this to register the feature so that we can get the default options
30-
import "../register_feature_options.mjs";
30+
import "../register_feature_options";
3131

3232

33-
import { getDefaultOptionValuesForFeature } from "../../core/options/options_registry.mjs"
33+
import { getDefaultOptionValuesForFeature } from "../../core/options/options_registry"
3434

3535
const defaultUserOptions = getDefaultOptionValuesForFeature("agc", true);
3636

Diff for: src/features/agc/agc_content.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
SOFTWARE.
2323
*/
2424

25-
import { checkIfFeatureEnabled, getFeatureOptions } from "../../core/options/options_storage.mjs"
25+
import { checkIfFeatureEnabled, getFeatureOptions } from "../../core/options/options_storage"
2626

2727
// file level variables
2828
var agcButton = undefined;

Diff for: src/features/agc/agc_options.mjs renamed to src/features/agc/agc_options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { registerFeature, OptionType } from "../../core/options/options_registry.mjs"
1+
import { registerFeature, OptionType } from "../../core/options/options_registry"
22

33
// The feature data for the AGC feature
44
const agcFeature = {

Diff for: src/features/register_feature_options.mjs renamed to src/features/register_feature_options.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { registerFeature } from "../core/options/options_registry.mjs"
1+
import { registerFeature } from "../core/options/options_registry"
22

33
// Just importing this file will register all the features
44

@@ -7,7 +7,7 @@ import { registerFeature } from "../core/options/options_registry.mjs"
77
// the feature and options
88
////////////////////////////////////////////////////////////////////////////////
99

10-
import "./agc/agc_options.mjs";
10+
import "./agc/agc_options.js";
1111

1212
////////////////////////////////////////////////////////////////////////////////
1313
// Simple features with no options can be registered here

Diff for: src/options.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import $ from "jquery";
22

3-
import { features, OptionType } from "./core/options/options_registry.mjs";
4-
import "./features/register_feature_options.mjs";
3+
import { features, OptionType } from "./core/options/options_registry";
4+
import "./features/register_feature_options";
55

66

77
// Categories

0 commit comments

Comments
 (0)