From 0f57f0ce98f6cc69ab0deee444920bfb5658c354 Mon Sep 17 00:00:00 2001 From: GhostfromTexas Date: Mon, 4 Jun 2018 13:17:14 -0500 Subject: [PATCH 1/4] Fix for symbolic link issues with Windows. --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index ef134950..f89a891c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -138,12 +138,12 @@ export class TypeScriptPlugin { async copyExtras() { // include node_modules into build if (!fs.existsSync(path.resolve(path.join(buildFolder, 'node_modules')))) { - fs.symlinkSync(path.resolve('node_modules'), path.resolve(path.join(buildFolder, 'node_modules'))) + fs.symlinkSync(path.resolve('node_modules'), path.resolve(path.join(buildFolder, 'node_modules')), 'junction') } // include package.json into build so Serverless can exlcude devDeps during packaging if (!fs.existsSync(path.resolve(path.join(buildFolder, 'package.json')))) { - fs.symlinkSync(path.resolve('package.json'), path.resolve(path.join(buildFolder, 'package.json'))) + fs.symlinkSync(path.resolve('package.json'), path.resolve(path.join(buildFolder, 'package.json')), 'file') } // include any "extras" from the "include" section From 15996e317851f41abe1867685cf30e73e02626fb Mon Sep 17 00:00:00 2001 From: GhostfromTexas Date: Mon, 4 Jun 2018 14:23:12 -0500 Subject: [PATCH 2/4] Update Readme.md and package version to reflect this fork of serverless-typescript-plugin --- README.md | 28 ++++++++++++++++++++++------ package.json | 2 +- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 16b7d00a..d5aa3280 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,20 @@ # serverless-plugin-typescript -[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) [![npm version](https://badge.fury.io/js/serverless-plugin-typescript.svg)](https://badge.fury.io/js/serverless-plugin-typescript) [![Build Status](https://travis-ci.org/graphcool/serverless-plugin-typescript.svg?branch=master)](https://travis-ci.org/graphcool/serverless-plugin-typescript) +[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) Serverless plugin for zero-config Typescript support +## HEWMEN Update +Original NPM Module: npmjs.com/package/serverless-plugin-typescript + +This version of `serverless-typescript-plugin` fixes symbolic link issues with Windows OS resulting in the following errors: + +> 1) EPERM: operation not permitted, scandir... +> 2) EPERM: operation not permitted, symlink... + +When attaching the "node_modules" folder to the build + +Created PR for original plugin: github.com/prismagraphql/serverless-plugin-typescript/pull/103 + ## Features * Zero-config: Works out of the box without the need to install any other compiler or plugins @@ -14,14 +26,18 @@ Serverless plugin for zero-config Typescript support ## Install ```sh -yarn add --dev serverless-plugin-typescript +yarn add --dev @hewmen/serverless-plugin-typescript +``` +or +``` +npm install --save-dev @hewmen/serverless-plugin-typescript ``` Add the following plugin to your `serverless.yml`: ```yaml plugins: - - serverless-plugin-typescript + - '@hewmen/serverless-plugin-typescript' ``` ## Configure @@ -92,12 +108,12 @@ The normal Serverless deploy procedure will automatically compile with Typescrip The plugin integrates very well with [serverless-offline](https://github.com/dherault/serverless-offline) to simulate AWS Lambda and AWS API Gateway locally. -Add the plugins to your `serverless.yml` file and make sure that `serverless-plugin-typescript` +Add the plugins to your `serverless.yml` file and make sure that `@hewmen/serverless-plugin-typescript` precedes `serverless-offline` as the order is important: ```yaml plugins: ... - - serverless-plugin-typescript + - '@hewmen/serverless-plugin-typescript' ... - serverless-offline ... @@ -113,7 +129,7 @@ Configure your service the same as mentioned above, but additionally add the `se plugin as follows: ```yaml plugins: - - serverless-plugin-typescript + - '@hewmen/serverless-plugin-typescript' - serverless-dynamodb-local - serverless-offline ``` diff --git a/package.json b/package.json index 5f519056..8bae6baa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "serverless-plugin-typescript", - "version": "0.0.0-semantic-release", + "version": "1.1.16", "main": "dist/src/index.js", "files": [ "dist", From cb68a55dc17d1df0fb003486e180916e86b51a76 Mon Sep 17 00:00:00 2001 From: GhostfromTexas Date: Mon, 4 Jun 2018 14:29:58 -0500 Subject: [PATCH 3/4] Fixed package name in package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8bae6baa..c8c2ed10 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "serverless-plugin-typescript", + "name": "@hewmen/serverless-plugin-typescript", "version": "1.1.16", "main": "dist/src/index.js", "files": [ From 4ddabf26b86ffc26a12b8c8bb84f9867626d2d15 Mon Sep 17 00:00:00 2001 From: GhostfromTexas Date: Mon, 4 Jun 2018 14:39:41 -0500 Subject: [PATCH 4/4] Fixed to readme.md links and package.json github version. Updated to version 1.1.17 --- README.md | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d5aa3280..2a3d40fc 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Serverless plugin for zero-config Typescript support ## HEWMEN Update -Original NPM Module: npmjs.com/package/serverless-plugin-typescript +Original NPM Module: http://www.npmjs.com/package/serverless-plugin-typescript This version of `serverless-typescript-plugin` fixes symbolic link issues with Windows OS resulting in the following errors: @@ -13,7 +13,7 @@ This version of `serverless-typescript-plugin` fixes symbolic link issues with W When attaching the "node_modules" folder to the build -Created PR for original plugin: github.com/prismagraphql/serverless-plugin-typescript/pull/103 +Created PR for original plugin: http://www.github.com/prismagraphql/serverless-plugin-typescript/pull/103 ## Features diff --git a/package.json b/package.json index c8c2ed10..2a96e994 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hewmen/serverless-plugin-typescript", - "version": "1.1.16", + "version": "1.1.17", "main": "dist/src/index.js", "files": [ "dist", @@ -17,7 +17,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/graphcool/serverless-plugin-typescript.git" + "url": "git+https://github.com/hewmen/serverless-plugin-typescript.git" }, "keywords": [ "serverless",