forked from aiscript-dev/aiscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fake ESMを純粋なESMに置き換え、commonjsとesmodule用にエクスポートするように (aiscript-…
…dev#310) * fake ESMからESMに置き換え * 置き換え * テストで純粋なesmoduleを読めるように * autobindの代替を書いた * package-lock.jsonを更新 * viteを更新
- Loading branch information
Showing
25 changed files
with
766 additions
and
200 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
{ | ||
"type": "module", | ||
"name": "@syuilo/aiscript", | ||
"version": "0.15.0", | ||
"description": "AiScript implementation", | ||
"author": "syuilo <[email protected]>", | ||
"license": "MIT", | ||
"repository": "https://github.com/syuilo/aiscript.git", | ||
"bugs": "https://github.com/syuilo/aiscript/issues", | ||
"main": "./built/index.js", | ||
"types": "./built/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./built/esm/index.js", | ||
"require": "./built/cjs/index.js", | ||
"types": "./built/dts/index.ts" | ||
}, | ||
"./*": { | ||
"import": "./built/esm/*", | ||
"require": "./built/cjs/*", | ||
"types": "./built/dts/*" | ||
} | ||
}, | ||
"scripts": { | ||
"start": "node ./run", | ||
"parse": "node ./parse", | ||
"peg": "peggy --format es --cache -o src/parser/parser.js --allowed-start-rules Preprocess,Main src/parser/parser.peggy && npm run peg-copy", | ||
"peg-debug": "peggy --trace --format es --cache -o src/parser/parser.js --allowed-start-rules Preprocess,Main src/parser/parser.peggy && npm run peg-copy", | ||
"peg-copy": "copyfiles -f src/parser/parser.js built/parser/", | ||
"build": "npm run peg && tsc", | ||
"build": "npm run peg && tsc --outDir built/esm && tsc --module commonjs --outDir built/cjs && tsc --outDir built/dts --declaration true --emitDeclarationOnly true --declarationMap true", | ||
"build-debug": "npm run peg-debug && tsc", | ||
"api": "npx api-extractor run --local --verbose", | ||
"api-prod": "npx api-extractor run --verbose", | ||
|
@@ -38,12 +49,12 @@ | |
"jest": "29.6.1", | ||
"peggy": "3.0.2", | ||
"ts-jest": "29.1.1", | ||
"ts-jest-resolver": "2.0.1", | ||
"ts-node": "10.9.1", | ||
"tsd": "0.28.1", | ||
"typescript": "5.1.6" | ||
}, | ||
"dependencies": { | ||
"autobind-decorator": "2.4.0", | ||
"seedrandom": "3.0.5", | ||
"stringz": "2.1.0", | ||
"uuid": "9.0.0" | ||
|
Oops, something went wrong.