From 5fb382832d2eed0adfafee89ca54b44fcec580c1 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Mon, 23 May 2022 15:02:21 +0000 Subject: [PATCH] Fixing some errors and deleting unnesessary code. --- PRNameGenerator.ts | 5 +---- package-lock.json | 4 ++-- package.json | 2 +- tsconfig.json | 16 +++++----------- webpack.config.dev.server.js | 3 --- 5 files changed, 9 insertions(+), 21 deletions(-) diff --git a/PRNameGenerator.ts b/PRNameGenerator.ts index e22dfb9..d6a30a5 100644 --- a/PRNameGenerator.ts +++ b/PRNameGenerator.ts @@ -8,7 +8,4 @@ const PRName = function () { return 'PR-'+ID; }; -console.log(PRName()); - -export default PRName; - +console.log(PRName()); diff --git a/package-lock.json b/package-lock.json index b195595..733bc82 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@aleleba/create-react-ssr", - "version": "2.0.0", + "version": "2.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@aleleba/create-react-ssr", - "version": "2.0.0", + "version": "2.0.1", "license": "MIT", "dependencies": { "@babel/register": "^7.17.7", diff --git a/package.json b/package.json index 6725169..f6b2122 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aleleba/create-react-ssr", - "version": "2.0.1", + "version": "2.0.2", "description": "Starter Kit of server side render of react", "bin": "./bin/cli.js", "main": "src/server/index", diff --git a/tsconfig.json b/tsconfig.json index 8d633d3..5dbc489 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,13 +1,4 @@ { - "extends": "ts-node/node12/tsconfig.json", - "ts-node": { - // It is faster to skip typechecking. - // Remove if you want ts-node to do typechecking. - "transpileOnly": true, - "compilerOptions": { - "module": "commonjs", - } - }, "compilerOptions": { "target": "es5", "lib": [ @@ -17,7 +8,6 @@ ], "allowJs": true, "skipLibCheck": true, - "esModuleInterop": true, "allowSyntheticDefaultImports": true, "strict": true, "forceConsistentCasingInFileNames": true, @@ -29,6 +19,7 @@ "noEmit": false, "jsx": "react-jsx", "experimentalDecorators": true, + "esModuleInterop": true, "types": [ "react/next", "react-dom/next", @@ -36,11 +27,14 @@ ], "sourceMap": true, "baseUrl": "**/*", + "outDir": "build" }, "include": [ "**/*" ], "exclude": [ - "node_modules" + "node_modules", + "build", + "PRNameGenerator.ts" ] } \ No newline at end of file diff --git a/webpack.config.dev.server.js b/webpack.config.dev.server.js index 965a9be..fdac288 100644 --- a/webpack.config.dev.server.js +++ b/webpack.config.dev.server.js @@ -74,9 +74,6 @@ module.exports = { path: BUILD_DIR, filename: '[name].js', libraryTarget: 'commonjs2', - chunkFilename: 'chunks/[name].js', - devtoolModuleFilenameTemplate: info => path.resolve(info.absoluteResourcePath).replace(/\\/g, '/'), - assetModuleFilename: 'assets/[hash][ext][query]', }, node: false, externals: [webpackNodeExternals()],