@mavnn/codemirror-lang-ink 0.9.2 → 0.9.4

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.
@@ -0,0 +1,3 @@
1
+ import { LRLanguage, LanguageSupport } from "@codemirror/language";
2
+ export declare const InkLanguage: LRLanguage;
3
+ export declare const InkLanguageSupport: LanguageSupport;
@@ -0,0 +1,2 @@
1
+ import { ExternalTokenizer } from "@lezer/lr";
2
+ export declare const checkBrace: ExternalTokenizer;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mavnn/codemirror-lang-ink",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "Ink language support for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "pre-gen": "mkdir -p src/generated && lezer-generator src/syntax.grammar -o src/generated/parser",
@@ -17,12 +17,12 @@
17
17
  "url": "http://bonfire.mavnn.eu/@mavnn"
18
18
  },
19
19
  "type": "module",
20
- "main": "dist/index.cjs",
20
+ "main": "dist/index.js",
21
21
  "exports": {
22
22
  "import": "./dist/index.js",
23
- "require": "./dist/index.cjs"
23
+ "require": "./dist/index.js"
24
24
  },
25
- "types": "dist/index.d.ts",
25
+ "types": "dist/src/index.d.ts",
26
26
  "module": "dist/index.js",
27
27
  "sideEffects": false,
28
28
  "license": "MIT",
package/rollup.config.mjs CHANGED
@@ -5,6 +5,6 @@ import {lezer} from "@lezer/generator/rollup"
5
5
  export default {
6
6
  input: 'src/index.ts',
7
7
  output: { file: './dist/index.js', format: 'cjs' },
8
- plugins: [lezer(), nodeResolve(), typescript()],
8
+ plugins: [lezer(), nodeResolve(), typescript({ declaration: true, outDir: "./dist" })],
9
9
  external: (id) => /node_modules\//.test(id)
10
10
  }