Skip to content

Commit

Permalink
chore: drop nodejs 18 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkro committed Nov 30, 2024
1 parent d619bf4 commit ed9e0b9
Show file tree
Hide file tree
Showing 5 changed files with 3,173 additions and 2,790 deletions.
32 changes: 0 additions & 32 deletions index.cjs

This file was deleted.

30 changes: 30 additions & 0 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { Parser, ModelExporter } from '@dbml/core';

const name = 'dbml';

export const languages = [
{
name: 'DBML',
parsers: [name],
extensions: ['.dbml'],
aceMode: 'text',
tmScope: 'source.dbml',
},
];

export const parsers = {
[name]: {
astFormat: name,
parse: (data) => new Parser().parse(data, 'dbmlv2'),
},
};

export const printers = {
[name]: {
print: (path) => {
const ast = path.getValue();

return ModelExporter.export(ast, 'dbml', false);
},
},
};
28 changes: 12 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prettier-plugin-dbml",
"version": "0.2.0",
"version": "0.3.0",
"description": "A `prettier` plugin for DBML",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -34,35 +34,31 @@
"test": "ava --fail-fast"
},
"dependencies": {
"@dbml/core": "3.4.1"
"@dbml/core": "3.9.3"
},
"devDependencies": {
"@bring-it/npm": "^0.5.2",
"@nice-move/cli": "^0.11.9",
"@nice-move/eslint-config-base": "^0.11.3",
"@nice-move/prettier-config": "^0.11.1",
"ava": "^6.1.2",
"eslint": "^8.57.0",
"@bring-it/cli": "^0.9.9",
"@bring-it/npm": "^0.5.9",
"@nice-move/all-in-base": "^0.2.14",
"ava": "^6.2.0",
"eslint": "^8.57.1",
"eslint-plugin-ava": "^14.0.0",
"garou": "^0.7.3",
"prettier": "^3.2.5"
"garou": "^0.8.2",
"prettier": "^3.4.1"
},
"peerDependencies": {
"prettier": "^3.2.5"
"prettier": "^3.4.1"
},
"engines": {
"node": ">=18.12.0 || ^16.15.0"
"node": ">=20.18.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"packageManager": "pnpm@8.15.7",
"packageManager": "pnpm@9.14.2",
"eslintConfig": {
"extends": "@nice-move/eslint-config-base"
},
"nice-move": {
"import-groups": "nice-move-preset"
},
"prettier": "@nice-move/prettier-config"
}
Loading

0 comments on commit ed9e0b9

Please sign in to comment.