diff --git a/.gitignore b/.gitignore index d3f2322..f6504de 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ node_modules/ coverage/ build/ dist/ +types/ \ No newline at end of file diff --git a/package.json b/package.json index 884db8f..7f94cd7 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,8 @@ "scripts": { "build": "npm run build:js && npm run build:types", "build:js": "ipjs build --tests --main && npm run build:copy", - "build:copy": "mkdir -p dist/examples/ && cp -a tsconfig.json *.js *.ts lib/ test/ dist/ && cp examples/*.* dist/examples/", - "build:types": "npm run build:copy && cd dist && tsc --build", + "build:copy": "mkdir -p dist/examples/ && cp -a tsconfig.json *.js *.ts lib test examples dist/", + "build:types": "tsc --build && mv types dist", "prepublishOnly": "npm run build", "publish": "ipjs publish", "lint": "standard", diff --git a/tsconfig.json b/tsconfig.json index 58f91b0..873f74e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -38,10 +38,8 @@ }, "exclude": [ "node_modules", - "esm", - "cjs", - "examples", - "index.js" + "dist", + "examples" ], "compileOnSave": false }