diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b64081ea..3a13ab1b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -147,6 +147,12 @@ jobs: - name: Build All TypeScript run: npm run build:publish --if-present + - name: Copy other files for publishing - microapps-publish + run: cd src/microapps-publish && npx tscp + + - name: Copy other files for publishing - microapps-datalib + run: cd src/common/microapps-datalib && npx tscp + - name: Run Lint run: npm run lint diff --git a/src/common/microapps-datalib/.npmignore b/src/common/microapps-datalib/.npmignore new file mode 100644 index 00000000..cc1b7f16 --- /dev/null +++ b/src/common/microapps-datalib/.npmignore @@ -0,0 +1 @@ +tsconfig.tsbuildinfo diff --git a/src/common/microapps-datalib/package.json b/src/common/microapps-datalib/package.json index 6ca283bf..5051e7b4 100644 --- a/src/common/microapps-datalib/package.json +++ b/src/common/microapps-datalib/package.json @@ -2,9 +2,9 @@ "name": "@pwrdrvr/microapps-datalib", "version": "0.0.0", "description": "Data library for the microapps framework", - "types": "dist/index.d.ts", + "types": "index.d.ts", "module": "true", - "main": "dist/index.js", + "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, @@ -39,6 +39,7 @@ "chai": "^4.3.4", "dynamodb-local": "^0.0.31", "mocha": "^8.3.0", - "node-fetch": "^2.6.1" + "node-fetch": "^2.6.1", + "typescript-cp": "^0.1.4" } } diff --git a/src/microapps-publish/package.json b/src/microapps-publish/package.json index 52dec5ea..7b8a04aa 100644 --- a/src/microapps-publish/package.json +++ b/src/microapps-publish/package.json @@ -2,7 +2,7 @@ "name": "@pwrdrvr/microapps-publish", "version": "0.0.0", "description": "Publish tool for deploying apps and updates", - "main": "dist/src/index.js", + "main": "src/index.js", "source": "src/index.ts", "bin": { "microapps-publish": "dist/src/index.js" @@ -54,6 +54,7 @@ "@types/fs-extra": "^9.0.11", "@types/js-yaml": "^4.0.1", "@types/mime-types": "^2.1.0", - "@types/source-map-support": "^0.5.4" + "@types/source-map-support": "^0.5.4", + "typescript-cp": "^0.1.4" } }