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; return 'PR-'+ID;
}; };
console.log(PRName()); console.log(PRName());
export default PRName;

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@aleleba/create-react-ssr", "name": "@aleleba/create-react-ssr",
"version": "2.0.0", "version": "2.0.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@aleleba/create-react-ssr", "name": "@aleleba/create-react-ssr",
"version": "2.0.0", "version": "2.0.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@babel/register": "^7.17.7", "@babel/register": "^7.17.7",

View File

@ -1,6 +1,6 @@
{ {
"name": "@aleleba/create-react-ssr", "name": "@aleleba/create-react-ssr",
"version": "2.0.1", "version": "2.0.2",
"description": "Starter Kit of server side render of react", "description": "Starter Kit of server side render of react",
"bin": "./bin/cli.js", "bin": "./bin/cli.js",
"main": "src/server/index", "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": { "compilerOptions": {
"target": "es5", "target": "es5",
"lib": [ "lib": [
@ -17,7 +8,6 @@
], ],
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"strict": true, "strict": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
@ -29,6 +19,7 @@
"noEmit": false, "noEmit": false,
"jsx": "react-jsx", "jsx": "react-jsx",
"experimentalDecorators": true, "experimentalDecorators": true,
"esModuleInterop": true,
"types": [ "types": [
"react/next", "react/next",
"react-dom/next", "react-dom/next",
@ -36,11 +27,14 @@
], ],
"sourceMap": true, "sourceMap": true,
"baseUrl": "**/*", "baseUrl": "**/*",
"outDir": "build"
}, },
"include": [ "include": [
"**/*" "**/*"
], ],
"exclude": [ "exclude": [
"node_modules" "node_modules",
"build",
"PRNameGenerator.ts"
] ]
} }

View File

@ -74,9 +74,6 @@ module.exports = {
path: BUILD_DIR, path: BUILD_DIR,
filename: '[name].js', filename: '[name].js',
libraryTarget: 'commonjs2', libraryTarget: 'commonjs2',
chunkFilename: 'chunks/[name].js',
devtoolModuleFilenameTemplate: info => path.resolve(info.absoluteResourcePath).replace(/\\/g, '/'),
assetModuleFilename: 'assets/[hash][ext][query]',
}, },
node: false, node: false,
externals: [webpackNodeExternals()], externals: [webpackNodeExternals()],