Skip to content

Commit

Permalink
New version 0.0.1-beta.16 Read more https://github.com/mappable-world…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Jul 20, 2023
1 parent e95c084 commit ca2e7cf
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mappable-world/mappable-cli",
"version": "0.0.1-beta.15",
"version": "0.0.1-beta.16",
"description": "Library for encapsulating the logic of autotests and building packages mappable.world js API",
"main": "dist/index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const TARGET = path.resolve(argv.out) + path.sep;
await initGit();
await installDependencies();

log('Finish');
log('Finish. Run: npm start');
process.exit();
})();

Expand Down
2 changes: 1 addition & 1 deletion tools/replace.middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports.replaceMiddleware = (middleares, devServer) => {

if (fs.statSync(file).isDirectory()) {
res.send(
`<html lang="en">
`<html lang="en">
<body>
<ul>${fs
.readdirSync(file)
Expand Down
6 changes: 6 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ const path = require('path');
const {replaceMiddleware} = require("./tools/replace.middleware");
const isProduction = process.env.NODE_ENV === 'production';

Object.assign(process.env, require('dotenv').config());

if (!process.env.APIKEY) {
throw new Error('Define APIKEY env');
}

module.exports = (args, env, dir = process.cwd()) => {
const {name} = require(path.resolve(dir, './package.json'));

Expand Down

0 comments on commit ca2e7cf

Please sign in to comment.