Skip to content

fix: update tsconfigs and package.json #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ class CodegenVisitor extends ShapeVisitor.Default<Void> {
/** A mapping of static resource files to copy over to a new filename. */
private static final Map<String, String> STATIC_FILE_COPIES = MapUtils.of(
"tsconfig.es.json", "tsconfig.es.json",
"tsconfig.json", "tsconfig.json",
"tsconfig.test.json", "tsconfig.test.json"
"tsconfig.json", "tsconfig.json"
);

private final TypeScriptSettings settings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,36 @@
"description": "${packageDescription}",
"version": "${packageVersion}",
"scripts": {
"clean": "npm run remove-definitions && npm run remove-maps && npm run remove-js",
"clean": "npm run remove-definitions && npm run remove-dist && npm run remove-js && npm run remove-maps",
"build-documentation": "npm run clean && typedoc ./",
"prepublishOnly": "tsc",
"prepublishOnly": "yarn build",
"pretest": "tsc",
"remove-definitions": "rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./types/*.d.ts",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"remove-js": "rimraf *.js && rimraf ./commands/*.js && rimraf ./shared/*.js && rimraf ./types/*.js",
"remove-maps": "rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./shared/*.js.map && rimraf ./types/*.js.map",
"remove-js": "rimraf *.js && rimraf ./commands/*.js && rimraf ./models/*.js && rimraf ./protocols/*.js",
"remove-maps": "rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./models/*.js.map && rimraf ./protocols/*.js.map",
"test": "exit 0",
"smoke-test": "karma start karma.conf"
"smoke-test": "npm run pretest && node ./test/smoke/index.spec.js",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn pretest && yarn build:es"
},
"main": "./index.js",
"types": "./index.d.ts",
"dependencies": {},
"module": "./dist/es/index.js",
"browser": {
"./runtimeConfig": "./runtimeConfig.browser"
},
"sideEffects": false,
"dependencies": {
"tslib": "^1.8.0"
},
"devDependencies": {
"rimraf": "^3.0.0",
"typedoc": "^0.15.0",
"typescript": "^3.6.3"
},
"engines": {
"node": ">=8.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"alwaysStrict": true,
"target": "es2017",
"module": "commonjs",
"declaration": true,
Expand All @@ -11,7 +12,8 @@
"incremental": true,
"resolveJsonModule": true,
"noUnusedLocals": true,
"declarationDir": "./types"
"declarationDir": "./types",
"outDir": "dist/cjs"
},
"typedocOptions": {
"exclude": "**/node_modules/**",
Expand Down

This file was deleted.