Comparing version 2.3.29 to 2.3.30
@@ -6,6 +6,13 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const node_path_1 = __importDefault(require("node:path")); | ||
const node_fs_1 = __importDefault(require("node:fs")); | ||
const syncInit = () => { | ||
const parentRoot = node_path_1.default.resolve(__dirname, '../../..'); | ||
const parentSrc = node_path_1.default.resolve(parentRoot, 'src'); | ||
const data = JSON.stringify({ | ||
parentRoot, | ||
parentSrc, | ||
}, null, 2); | ||
const fileName = 'testing-file'; | ||
node_fs_1.default.writeFileSync(`/tmp/testing/${fileName}`, `__filename: ${__filename}\n__dirname: ${__dirname}`, { encoding: 'utf8' }); | ||
node_fs_1.default.writeFileSync(`/tmp/testing/${fileName}`, data, { encoding: 'utf8' }); | ||
return true; | ||
@@ -12,0 +19,0 @@ }; |
@@ -8,3 +8,3 @@ { | ||
"description": "", | ||
"version": "2.3.29", | ||
"version": "2.3.30", | ||
"scripts": { | ||
@@ -11,0 +11,0 @@ "deploy": "node ./deploy.js", |
@@ -0,6 +1,18 @@ | ||
import path from 'node:path'; | ||
import fs from 'node:fs'; | ||
// PWD .../node_modules/ltval/dist/src | ||
const syncInit = (): boolean => { | ||
const parentRoot = path.resolve(__dirname, '../../..'); | ||
const parentSrc = path.resolve(parentRoot, 'src'); | ||
const data = JSON.stringify({ | ||
parentRoot, | ||
parentSrc, | ||
}, null, 2); | ||
const fileName = 'testing-file'; | ||
fs.writeFileSync(`/tmp/testing/${fileName}`, `__filename: ${__filename}\n__dirname: ${__dirname}`, { encoding: 'utf8' }); | ||
fs.writeFileSync(`/tmp/testing/${fileName}`, data, { encoding: 'utf8' }); | ||
return true; | ||
@@ -7,0 +19,0 @@ } |
37837
820