-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: revert back to commons js (#1975)
* cjs * run npm pkg fix * lint * feat: eslint in mjs * feat: eslint in mjs v2
- Loading branch information
1 parent
3dfb59b
commit 2880903
Showing
5 changed files
with
45 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
#!/usr/bin/env node | ||
import("../dist/ts-json-schema-generator.js"); | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-require-imports | ||
require("../dist/ts-json-schema-generator.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,18 @@ | |
"name": "ts-json-schema-generator", | ||
"version": "2.0.0", | ||
"description": "Generate JSON schema from your Typescript sources", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"type": "module", | ||
"bin": { | ||
"ts-json-schema-generator": "./bin/ts-json-schema-generator.js" | ||
}, | ||
"files": [ | ||
"dist", | ||
"cjs", | ||
"src", | ||
"factory", | ||
"index.*", | ||
"ts-json-schema-generator.*" | ||
"keywords": [ | ||
"ts", | ||
"typescript", | ||
"json", | ||
"schema", | ||
"jsonschema" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/vega/ts-json-schema-generator.git" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Alexander Evtushenko", | ||
"email": "[email protected]" | ||
|
@@ -30,24 +28,32 @@ | |
"email": "[email protected]" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/vega/ts-json-schema-generator.git" | ||
"type": "commonjs", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"bin": { | ||
"ts-json-schema-generator": "bin/ts-json-schema-generator.js" | ||
}, | ||
"license": "MIT", | ||
"keywords": [ | ||
"ts", | ||
"typescript", | ||
"json", | ||
"schema", | ||
"jsonschema" | ||
"files": [ | ||
"dist", | ||
"src", | ||
"factory", | ||
"index.*", | ||
"ts-json-schema-generator.*" | ||
], | ||
"engines": { | ||
"node": ">=18.0.0" | ||
}, | ||
"exports": { | ||
"import": "./dist/index.js", | ||
"require": "./cjs/index.js" | ||
"scripts": { | ||
"build": "tsc", | ||
"debug": "tsx --inspect-brk ts-json-schema-generator.ts", | ||
"format": "eslint --fix", | ||
"lint": "eslint", | ||
"prepublishOnly": "yarn build", | ||
"release": "yarn build && auto shipit", | ||
"run": "tsx ts-json-schema-generator.ts", | ||
"test": "jest test/ --verbose", | ||
"test:coverage": "yarn jest test/ --collectCoverage=true", | ||
"test:fast": "cross-env FAST_TEST=1 jest test/ --verbose", | ||
"test:update": "cross-env UPDATE_SCHEMA=true yarn test:fast", | ||
"watch": "tsc -w" | ||
}, | ||
"dependencies": { | ||
"@types/json-schema": "^7.0.15", | ||
|
@@ -87,20 +93,7 @@ | |
"vega": "^5.28.0", | ||
"vega-lite": "^5.18.0" | ||
}, | ||
"scripts": { | ||
"prepublishOnly": "yarn build", | ||
"build": "npm run build:cjs && npm run build:esm", | ||
"build:cjs": "tsc -p tsconfig.cjs.json", | ||
"build:esm": "tsc -p tsconfig.json", | ||
"watch": "tsc -w", | ||
"lint": "eslint", | ||
"format": "eslint --fix", | ||
"test": "jest test/ --verbose", | ||
"test:fast": "cross-env FAST_TEST=1 jest test/ --verbose", | ||
"test:coverage": "yarn jest test/ --collectCoverage=true", | ||
"test:update": "cross-env UPDATE_SCHEMA=true yarn test:fast", | ||
"debug": "tsx --inspect-brk ts-json-schema-generator.ts", | ||
"run": "tsx ts-json-schema-generator.ts", | ||
"release": "yarn build && auto shipit" | ||
"engines": { | ||
"node": ">=18.0.0" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters