Skip to content

Commit

Permalink
"Just built"
Browse files Browse the repository at this point in the history
  • Loading branch information
o0101 committed Jan 5, 2022
1 parent e1004fd commit 5e9518b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .package.build.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "archivist1",
"name": "diskernet",
"version": "2.5.0",
"description": "Library server and an archivist browser controller.",
"main": "build/22120.js",
"module": "src/app.js",
"bin": {
"archivist1": "build/22120.js"
"diskernet": "build/22120.js"
},
"scripts": {
"bundle": "npx rollup --config",
Expand Down
20 changes: 13 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"name": "archivist1",
"version": "2.4.12",
"type": "module",
"name": "diskernet",
"version": "2.5.0",
"description": "Library server and an archivist browser controller.",
"main": "src/app.js",
"module": "dist/22120-module.js",
"main": "build/22120.js",
"module": "src/app.js",
"bin": {
"archivist1": "build/22120.js"
"diskernet": "build/22120.js"
},
"scripts": {
"bundle": "npx rollup --config",
Expand All @@ -27,6 +26,12 @@
"url": "git+https://github.com/dosyago/22120.git"
},
"pkg": {
"patches": {
"./node_modules/fetch-blob/streams.cjs": [
"Object.assign(globalThis, require('node:stream/web'))",
"Object.assign(globalThis, require('stream').web)"
]
},
"scripts": "build/*.js",
"assets": "public/**/*",
"outputPath": "bin"
Expand Down Expand Up @@ -62,6 +67,7 @@
"nodemon": "latest",
"npx": "^3.0.0",
"webpack": "latest",
"webpack-cli": "latest"
"webpack-cli": "latest",
"rollup-plugin-terser": "^7.0.2"
}
}
6 changes: 3 additions & 3 deletions src/common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path';
import {fileURLToPath} from 'url';
//import {fileURLToPath} from 'url';

export const DEBUG = process.env.DEBUG_22120 || false;
export const SHOW_FETCH = false;
Expand Down Expand Up @@ -40,8 +40,8 @@ export const SNIP_CONTEXT = 31;
export const NO_SANDBOX = process.env.DEBUG_22120 || false;

//export const APP_ROOT = '.';
//export const APP_ROOT = __dirname;
export const APP_ROOT = path.dirname(fileURLToPath(import.meta.url));
export const APP_ROOT = __dirname;
//export const APP_ROOT = path.dirname(fileURLToPath(import.meta.url));

export const sleep = ms => new Promise(res => setTimeout(res, ms));

Expand Down

0 comments on commit 5e9518b

Please sign in to comment.