Skip to content

Commit

Permalink
Build adjustments
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Hellawell <sshellawell@gmail.com>
  • Loading branch information
cykoder committed Jan 16, 2021
1 parent 74388e9 commit 5019e6b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ yarn.lock
package-lock.json
dist
lib
index.js
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
src
test
webpack.config.js
webpack.config.js
2 changes: 1 addition & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ gulp.task('lint-fix', () =>

// Clean folder
gulp.task('clean', () =>
del([`${libFolder}/**/*`])
del([`dist/**/*`, './index.js'])
);

// Webpack helper
Expand Down
3 changes: 0 additions & 3 deletions index.js

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "3d-dungeon-generator",
"version": "1.0.0",
"version": "1.0.2",
"description": "3D dungeon generator supporting shafts and staircases",
"main": "./index.js",
"scripts": {
Expand Down Expand Up @@ -45,7 +45,7 @@
"LICENSE",
"README.md",
"index.js",
"lib",
"src",
"dist"
],
"homepage": "https://github.com/SamHellawell/3d-dungeon-generator",
Expand Down Expand Up @@ -80,7 +80,7 @@
"entry": "index.js",
"dist-node": "index.js",
"dist-web": "index.web.js",
"bundle-node": false
"bundle-node": true
},
"dependencies": {
"delaunay": "^0.4.0",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function getConfig(options){

// determine output file name
var outputName = buildLibraryOutputName(libraryDesc, isWeb, isProd);
var outputFolder = isWeb ? 'dist' : 'lib';
var outputFolder = isWeb ? 'dist' : './';

// get base config
var config;
Expand Down

0 comments on commit 5019e6b

Please sign in to comment.