diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 5773a1c..0000000 --- a/.babelrc +++ /dev/null @@ -1,14 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "targets": { "node": "0.10" }, - "bugfixes": true, - "spec": true, - "useBuiltIns": false, - "shippedProposals": true - } - ] - ] -} diff --git a/eslint.config.js b/eslint.config.js index 254fab3..aa62509 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -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", diff --git a/src/Subtag.js b/lib/Subtag.js similarity index 100% rename from src/Subtag.js rename to lib/Subtag.js diff --git a/src/Tag.js b/lib/Tag.js similarity index 100% rename from src/Tag.js rename to lib/Tag.js diff --git a/src/index.js b/lib/index.js similarity index 100% rename from src/index.js rename to lib/index.js diff --git a/package.json b/package.json index bb364e8..45677b1 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" } } diff --git a/test/src/SubtagTest.js b/test/src/SubtagTest.js index 789d81f..b1cb9e2 100644 --- a/test/src/SubtagTest.js +++ b/test/src/SubtagTest.js @@ -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() { diff --git a/test/src/TagTest.js b/test/src/TagTest.js index 6b15da5..e0e2e98 100644 --- a/test/src/TagTest.js +++ b/test/src/TagTest.js @@ -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() { diff --git a/test/src/index-test.js b/test/src/index-test.js index b1fb406..9c5c255 100644 --- a/test/src/index-test.js +++ b/test/src/index-test.js @@ -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() {