suguru03 / serverless-plugin-warmup-ts-bridge

9 stars 7 forks source link

Default behaviour of typescript function has been override #6

Open ghost opened 4 years ago

ghost commented 4 years ago
    'before:package:createDeploymentArtifacts': () => __awaiter(this, void 0, void 0, function* () {
           yield this.compileTs();
           yield this.copyExtras();
           yield this.copyDependencies(true);
       }),
       'after:package:createDeploymentArtifacts': () => __awaiter(this, void 0, void 0, function* () {
           yield this.cleanup();
       }),

It seems that above is default behaviour of 'serverless-plugin-typescript'. However, it has been override by ts-bridge and hence required package does not included. Please include below code in ts-bridge.

yield this.copyExtras(); yield this.copyDependencies(true);

ZarcoNontol commented 3 years ago

I have noticed the same @jkachhia

ZarcoNontol commented 3 years ago

Hello! I have published an NPM Package that solves this: https://www.npmjs.com/package/serverless-plugin-warmup-ts-bridge-v2