@earthsciml/ast 0.1.1

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.
package/package.json ADDED
@@ -0,0 +1,97 @@
1
+ {
2
+ "name": "@earthsciml/ast",
3
+ "version": "0.1.1",
4
+ "type": "module",
5
+ "description": "TypeScript types and utilities for EarthSciML Serialization Format",
6
+ "main": "dist/cjs/index.js",
7
+ "module": "dist/esm/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/esm/index.js",
12
+ "require": "./dist/cjs/index.js",
13
+ "types": "./dist/index.d.ts"
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
17
+ "scripts": {
18
+ "build": "npm run build:rollup && npm run build:copy-types && npm run build:pkg-markers",
19
+ "build:clean": "rm -rf dist/esm dist/cjs dist/index.d.ts",
20
+ "build:rollup": "rollup -c",
21
+ "build:copy-types": "mkdir -p dist/esm dist/cjs && cp dist/index.d.ts dist/esm/index.d.ts && cp dist/index.d.ts dist/cjs/index.d.ts",
22
+ "build:pkg-markers": "node -e \"require('fs').writeFileSync('dist/cjs/package.json', JSON.stringify({type:'commonjs'})+'\\n'); require('fs').writeFileSync('dist/esm/package.json', JSON.stringify({type:'module'})+'\\n')\"",
23
+ "test": "vitest",
24
+ "test:watch": "vitest --watch",
25
+ "test:ci": "npm run test -- --run",
26
+ "typecheck": "tsc --noEmit -p tsconfig.json",
27
+ "lint": "eslint src",
28
+ "format": "prettier --write src *.json *.js *.ts",
29
+ "format:check": "prettier --check src *.json *.js *.ts",
30
+ "generate-schema": "node scripts/generate-embedded-schema.mjs",
31
+ "generate-validator": "node scripts/generate-standalone-validator.mjs",
32
+ "generate-types": "json2ts -i ../../esm-schema.json -o src/generated.ts && node scripts/fix-generated-expression.mjs",
33
+ "prepublishOnly": "npm run build",
34
+ "publish:dry-run": "npm publish --dry-run",
35
+ "publish:beta": "npm publish --tag beta",
36
+ "publish:release": "npm publish"
37
+ },
38
+ "files": [
39
+ "dist",
40
+ "schema",
41
+ "README.md",
42
+ "LICENSE"
43
+ ],
44
+ "keywords": [
45
+ "earth-science",
46
+ "scientific-modeling",
47
+ "serialization",
48
+ "typescript",
49
+ "modeling",
50
+ "chemistry",
51
+ "atmospheric-science",
52
+ "json-schema",
53
+ "expressions",
54
+ "mathematical-modeling"
55
+ ],
56
+ "author": "EarthSciML Authors and Contributors",
57
+ "license": "AGPL-3.0-only",
58
+ "publishConfig": {
59
+ "access": "public"
60
+ },
61
+ "repository": {
62
+ "type": "git",
63
+ "url": "git+https://github.com/EarthSciML/EarthSciAST.git",
64
+ "directory": "pkg/earthsci-ast-ts"
65
+ },
66
+ "bugs": {
67
+ "url": "https://github.com/EarthSciML/EarthSciAST/issues"
68
+ },
69
+ "homepage": "https://github.com/EarthSciML/EarthSciAST#readme",
70
+ "devDependencies": {
71
+ "@eslint/js": "^10.0.1",
72
+ "@rollup/plugin-commonjs": "^29.0.0",
73
+ "@rollup/plugin-json": "^6.1.0",
74
+ "@rollup/plugin-node-resolve": "^16.0.3",
75
+ "@rollup/plugin-typescript": "^12.3.0",
76
+ "@types/node": "^20.0.0",
77
+ "eslint": "^10.6.0",
78
+ "json-schema-to-typescript": "^13.0.0",
79
+ "prettier": "^3.9.4",
80
+ "rollup": "^4.57.1",
81
+ "rollup-plugin-dts": "^6.3.0",
82
+ "tslib": "^2.8.1",
83
+ "typescript": "^5.0.0",
84
+ "typescript-eslint": "^8.62.1",
85
+ "vitest": "^4.0.0"
86
+ },
87
+ "engines": {
88
+ "node": ">=20"
89
+ },
90
+ "dependencies": {
91
+ "ajv": "^8.17.1",
92
+ "ajv-formats": "^3.0.1"
93
+ },
94
+ "overrides": {
95
+ "undici": "^7.28.0"
96
+ }
97
+ }