Skip to content

Commit

Permalink
fix: add missing exports
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Jun 7, 2022
1 parent d049022 commit 273e23a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 37 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,26 @@ jobs:
run: yarn run build

# Test that the generated packages are ok
- name: Import main entry point
run: node -e 'require("zwave-js")'
- name: Import main entry points for each package
run: |
node -e 'require("zwave-js")'
node -e 'require("@zwave-js/cc")'
node -e 'require("@zwave-js/config")'
node -e 'require("@zwave-js/core")'
node -e 'require("@zwave-js/host")'
node -e 'require("@zwave-js/maintenance")'
node -e 'require("@zwave-js/nvmedit")'
node -e 'require("@zwave-js/serial")'
node -e 'require("@zwave-js/shared")'
node -e 'require("@zwave-js/testing")'
node -e 'require("zwave-js/safe")'
node -e 'require("@zwave-js/cc/safe")'
node -e 'require("@zwave-js/config/safe")'
node -e 'require("@zwave-js/core/safe")'
node -e 'require("@zwave-js/host/safe")'
node -e 'require("@zwave-js/nvmedit/safe")'
node -e 'require("@zwave-js/serial/safe")'
node -e 'require("@zwave-js/shared/safe")'
- name: Run component tests
run: yarn run test:ci
Expand Down
1 change: 1 addition & 0 deletions packages/cc/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "reflect-metadata";

export * from "./cc/index";
export * from "./lib/API";
export * from "./lib/CommandClass";
Expand Down
11 changes: 0 additions & 11 deletions packages/cc/src/index_safe.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
/* @noExternalImports */

export {
extensionType,
getExtensionType,
getS2ExtensionConstructor,
MGRPExtension,
MOSExtension,
MPANExtension,
Security2Extension,
SPANExtension,
} from "./lib/Security2/Extension";
export * from "./lib/Security2/shared";
export * from "./lib/_Types";
1 change: 1 addition & 0 deletions packages/cc/src/lib/Security2/Extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
ZWaveErrorCodes,
} from "@zwave-js/core/safe";
import { getEnumMemberName, TypedClassDecorator } from "@zwave-js/shared/safe";
import "reflect-metadata";

enum S2ExtensionType {
SPAN = 0x01,
Expand Down
13 changes: 1 addition & 12 deletions packages/zwave-js/src/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,4 @@ export type {
} from "./lib/node/NodeStatistics";
export { VirtualEndpoint } from "./lib/node/VirtualEndpoint";
export { VirtualNode, VirtualValueID } from "./lib/node/VirtualNode";
export {
InterviewStage,
LifelineHealthCheckResult,
LifelineHealthCheckSummary,
LifelineRoutes,
NodeInterviewFailedEventArgs,
NodeStatus,
RefreshInfoOptions,
RouteHealthCheckResult,
RouteHealthCheckSummary,
ZWaveNodeEvents,
} from "./lib/node/_Types";
export * from "./lib/node/_Types";
13 changes: 1 addition & 12 deletions packages/zwave-js/src/Node_safe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,4 @@ export type {
RouteStatistics,
} from "./lib/node/NodeStatistics";
export type { VirtualValueID } from "./lib/node/VirtualNode";
export {
InterviewStage,
LifelineHealthCheckResult,
LifelineHealthCheckSummary,
LifelineRoutes,
NodeInterviewFailedEventArgs,
NodeStatus,
RefreshInfoOptions,
RouteHealthCheckResult,
RouteHealthCheckSummary,
ZWaveNodeEvents,
} from "./lib/node/_Types";
export * from "./lib/node/_Types";

0 comments on commit 273e23a

Please sign in to comment.