fix exports

This commit is contained in:
Chen Asraf
2022-07-19 02:36:16 +03:00
parent e11828bb36
commit 1fbc3492da
5 changed files with 18 additions and 6 deletions

16
.vscode/tasks.json vendored
View File

@@ -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": []
},
]
}

View File

@@ -1,4 +1,4 @@
import * as _data from "./dw_data.json"
import _data from "./dw_data.json"
export * from "./types"
import { DungeonWorldRepository } from "./types"

View File

@@ -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"

View File

@@ -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. */