Fixing some errors and deleting unnesessary code.

This commit is contained in:
Alejandro Lembke Barrientos 2022-05-23 15:02:21 +00:00
parent 259e7f9a53
commit 5fb382832d
5 changed files with 9 additions and 21 deletions

View File

@ -8,7 +8,4 @@ const PRName = function () {
return 'PR-'+ID;
};
console.log(PRName());
export default PRName;
console.log(PRName());

4
package-lock.json generated
View File

@ -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",

View File

@ -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",

View File

@ -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"
]
}

View File

@ -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()],