@adrk/mxls 1.0.7 → 1.0.8

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/README.md +4 -4
  2. package/package.json +20 -9
package/README.md CHANGED
@@ -26,10 +26,10 @@ Schema-driven autocomplete, real-time validation, template generation, and code
26
26
  ## Installation
27
27
 
28
28
  ```bash
29
- npm install mxls monaco-editor @xmldom/xmldom ts-debounce prettier
29
+ npm install @adrk/mxls monaco-editor
30
30
  ```
31
31
 
32
- Add squiggle styles (or `@import 'mxls/style.css'`):
32
+ Add squiggle styles (or `@import '@adrk/mxls/style.css'`):
33
33
 
34
34
  ```css
35
35
  .xml-lint { border-width: 0; border-style: dotted; border-bottom-width: 3px; }
@@ -43,8 +43,8 @@ Add squiggle styles (or `@import 'mxls/style.css'`):
43
43
  ## Quick Start
44
44
 
45
45
  ```typescript
46
- import { SchemaRegistry, EditorPlugin } from 'mxls'
47
- import type { IMonacoApi } from 'mxls'
46
+ import { SchemaRegistry, EditorPlugin } from '@adrk/mxls'
47
+ import type { IMonacoApi } from '@adrk/mxls'
48
48
 
49
49
  function initEditor(editor: monaco.editor.IStandaloneCodeEditor, monacoApi: IMonacoApi): void {
50
50
  const registry = new SchemaRegistry(monacoApi)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adrk/mxls",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Monaco XML Language Support — schema-driven autocomplete, validation, and template generation",
5
5
  "license": "MIT",
6
6
  "author": "Ahmet Durak",
@@ -23,10 +23,12 @@
23
23
  "types": "dist/index.d.ts",
24
24
  "exports": {
25
25
  ".": {
26
+ "types": "./dist/index.d.ts",
26
27
  "import": "./dist/index.js",
27
- "require": "./dist/index.js",
28
- "types": "./dist/index.d.ts"
29
- }
28
+ "require": "./dist/index.js"
29
+ },
30
+ "./style.css": "./style.css",
31
+ "./package.json": "./package.json"
30
32
  },
31
33
  "files": [
32
34
  "dist",
@@ -36,12 +38,13 @@
36
38
  "scripts": {
37
39
  "test": "vitest run",
38
40
  "test:watch": "vitest",
39
- "clear": "npx rimraf dist",
40
- "build": "npm run clear && tsc -p tsconfig.build.json"
41
+ "typecheck": "tsc --noEmit",
42
+ "clear": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
43
+ "build": "npm run clear && tsc -p tsconfig.build.json",
44
+ "prepublishOnly": "npm run typecheck && npm test && npm run build"
41
45
  },
42
46
  "dependencies": {
43
47
  "@prettier/plugin-xml": "^3.4.2",
44
- "@types/turndown": "^5.0.6",
45
48
  "@xmldom/xmldom": "^0.9.10",
46
49
  "prettier": "^3.8.3",
47
50
  "ts-debounce": "^5.0.1",
@@ -51,7 +54,15 @@
51
54
  "monaco-editor": ">=0.30.0"
52
55
  },
53
56
  "devDependencies": {
54
- "typescript": "^5.0.0",
55
- "vitest": "^2.0.0"
57
+ "@types/turndown": "^5.0.6",
58
+ "monaco-editor": "^0.57.0",
59
+ "typescript": "^5.9.3",
60
+ "vitest": "^5.1.0"
61
+ },
62
+ "sideEffects": [
63
+ "*.css"
64
+ ],
65
+ "overrides": {
66
+ "dompurify": "^3.4.17"
56
67
  }
57
68
  }