@getpaseo/highlight 0.1.89 → 0.1.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/parsers.js +3 -0
  2. package/package.json +5 -3
package/dist/parsers.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { StreamLanguage } from "@codemirror/language";
2
+ import { dart } from "@codemirror/legacy-modes/mode/clike";
2
3
  import { swift } from "@codemirror/legacy-modes/mode/swift";
3
4
  import { parser as jsParser } from "@lezer/javascript";
4
5
  import { parser as jsonParser } from "@lezer/json";
@@ -57,6 +58,8 @@ const parsersByExtension = {
57
58
  rs: rustParser,
58
59
  // Swift
59
60
  swift: StreamLanguage.define(swift).parser,
61
+ // Dart
62
+ dart: StreamLanguage.define(dart).parser,
60
63
  // Elixir
61
64
  ex: elixirParser,
62
65
  exs: elixirParser,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/highlight",
3
- "version": "0.1.89",
3
+ "version": "0.1.90",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.map"
@@ -19,8 +19,10 @@
19
19
  "access": "public"
20
20
  },
21
21
  "scripts": {
22
- "build": "node -e \"require('node:fs').rmSync('dist',{ recursive: true, force: true })\" && tsc -p tsconfig.json --incremental false",
23
- "prepack": "npm run build",
22
+ "clean": "node ../../scripts/clean-package-dist.mjs",
23
+ "build": "tsc -p tsconfig.json --incremental false",
24
+ "build:clean": "npm run clean && npm run build",
25
+ "prepack": "npm run build:clean",
24
26
  "test": "vitest run",
25
27
  "typecheck": "tsgo --noEmit"
26
28
  },