Skip to content
Permalink
Browse files

Allow individual packaging with TypeScript source maps

  • Loading branch information...
therockstorm committed Jan 23, 2019
1 parent 3c5e5a2 commit 2ea7446879daf7cecb6d5d811bf2a6e539ed17f8
@@ -1,4 +1,5 @@
import * as Ask from 'ask-sdk';
import 'source-map-support/register';

export const alexa = Ask.SkillBuilders.custom()
.addRequestHandlers({
@@ -7,16 +7,16 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"ask-sdk": "^2.0.7"
"ask-sdk": "^2.3.0",
"source-map-support": "^0.5.10"
},
"devDependencies": {
"@types/node": "^8.0.57",
"@types/node": "^10.12.18",
"serverless-alexa-skills": "^0.1.0",
"serverless-webpack": "^5.1.1",
"source-map-support": "^0.5.6",
"ts-loader": "^4.2.0",
"typescript": "^2.9.2",
"webpack": "^4.5.0"
"serverless-webpack": "^5.2.0",
"ts-loader": "^5.3.3",
"typescript": "^3.2.4",
"webpack": "^4.29.0"
},
"author":
"The serverless webpack authors (https://github.com/elastic-coders/serverless-webpack)",

This file was deleted.

@@ -1,15 +1,9 @@
const path = require('path');
const slsw = require('serverless-webpack');

const entries = {};

Object.keys(slsw.lib.entries).forEach(
key => (entries[key] = ['./source-map-install.js', slsw.lib.entries[key]])
);

module.exports = {
mode: slsw.lib.webpack.isLocal ? 'development' : 'production',
entry: entries,
entry: slsw.lib.entries,
devtool: 'source-map',
resolve: {
extensions: ['.js', '.jsx', '.json', '.ts', '.tsx'],
@@ -1,4 +1,5 @@
import { APIGatewayProxyHandler } from 'aws-lambda';
import 'source-map-support/register';

export const hello: APIGatewayProxyHandler = async (event, context) => {
return {
@@ -7,15 +7,15 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"source-map-support": "^0.5.10"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.17",
"@types/node": "^8.0.57",
"serverless-webpack": "^5.1.1",
"source-map-support": "^0.5.6",
"ts-loader": "^4.2.0",
"typescript": "^2.9.2",
"webpack": "^4.5.0"
"@types/node": "^10.12.18",
"serverless-webpack": "^5.2.0",
"ts-loader": "^5.3.3",
"typescript": "^3.2.4",
"webpack": "^4.29.0"
},
"author":
"The serverless webpack authors (https://github.com/elastic-coders/serverless-webpack)",

This file was deleted.

@@ -1,15 +1,9 @@
const path = require('path');
const slsw = require('serverless-webpack');

const entries = {};

Object.keys(slsw.lib.entries).forEach(
key => (entries[key] = ['./source-map-install.js', slsw.lib.entries[key]])
);

module.exports = {
mode: slsw.lib.webpack.isLocal ? 'development' : 'production',
entry: entries,
entry: slsw.lib.entries,
devtool: 'source-map',
resolve: {
extensions: ['.js', '.jsx', '.json', '.ts', '.tsx'],

0 comments on commit 2ea7446

Please sign in to comment.
You can’t perform that action at this time.