mirror of
https://github.com/DungeonPaper/dungeon_world_data.git
synced 2026-05-17 18:08:01 +00:00
fix exports
This commit is contained in:
16
.vscode/tasks.json
vendored
16
.vscode/tasks.json
vendored
@@ -27,11 +27,23 @@
|
||||
{
|
||||
"label": "npm publish",
|
||||
"type": "shell",
|
||||
"command": "yarn build && npm publish -d ../build",
|
||||
"command": "npm publish -d ../build",
|
||||
"dependsOn": [
|
||||
"npm build",
|
||||
],
|
||||
"options": {
|
||||
"cwd": "./web/src"
|
||||
},
|
||||
"problemMatcher": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "npm build",
|
||||
"type": "shell",
|
||||
"command": "yarn build",
|
||||
"options": {
|
||||
"cwd": "./web/src"
|
||||
},
|
||||
"problemMatcher": []
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as _data from "./dw_data.json"
|
||||
import _data from "./dw_data.json"
|
||||
export * from "./types"
|
||||
|
||||
import { DungeonWorldRepository } from "./types"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dw-data",
|
||||
"version": "3.0.0-pre.15",
|
||||
"version": "3.0.0-pre.20",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/chenasraf/dungeon_world_data",
|
||||
"author": "Chen Asraf <contact@casraf.blog>",
|
||||
@@ -9,7 +9,7 @@
|
||||
"scripts": {
|
||||
"prebuild": "cd ../.. && dart scripts/parsers/dart_to_json.dart",
|
||||
"build": "tsc",
|
||||
"postbuild": "cp lib/types.d.ts package.json ../build/"
|
||||
"postbuild": "cp package.json ../build/"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^4.7.4"
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
||||
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
||||
/* Interop Constraints */
|
||||
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
||||
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
||||
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
||||
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
||||
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
||||
|
||||
Reference in New Issue
Block a user