Skip to content

Commit

Permalink
rip out babel following major upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcg committed Dec 16, 2024
1 parent 3052fde commit efbe8c8
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 31 deletions.
14 changes: 0 additions & 14 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import globals from "globals";

export default [
{
files: ["src/*.js", "test/*.js"],
files: ["lib/*.js", "test/*.js"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 4 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@
},
"license": "MIT",
"scripts": {
"prepublishOnly": "npm run build",
"prebuild": "rimraf lib && mkdirp lib",
"build": "babel src -d lib",
"lint": "eslint ./src ./test",
"tests-only": "c8 mocha",
"pretest": "npm run lint",
"test": "npm run tests-only"
"lint": "eslint ./lib ./test",
"test": "c8 mocha"
},
"keywords": [
"iana",
Expand All @@ -35,19 +30,15 @@
"language-subtag-registry": "^0.3.20"
},
"devDependencies": {
"@babel/cli": "^7.22.10",
"@babel/preset-env": "^7.22.10",
"coveralls": "^3.1.1",
"eslint": "^9.17.0",
"mkdirp": "^3.0.1",
"mocha": "^11.0.1",
"c8": "^10.1.3",
"rimraf": "^6.0.1"
"c8": "^10.1.3"
},
"files": [
"/lib"
],
"engines": {
"node": ">=0.10"
"node": ">=22"
}
}
2 changes: 1 addition & 1 deletion test/src/SubtagTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import assert from 'assert';
import {describe, it} from 'mocha';
import Subtag from '../../src/Subtag.js';
import Subtag from '../../lib/Subtag.js';

describe('Subtag', function () {
it('subtag.type() returns type', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/src/TagTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import assert from 'assert';
import {describe, it} from 'mocha';
import Tag from '../../src/Tag.js';
import Tag from '../../lib/Tag.js';

describe('Tag', function () {
it('tag.type() returns \'grandfathered\'', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/src/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import assert from 'assert';
import {describe, it} from 'mocha';
import tags from '../../src/index.js';
import tags from '../../lib/index.js';

describe('tags', function () {
it('date() returns file date', function() {
Expand Down

0 comments on commit efbe8c8

Please sign in to comment.