generated from cubetiq/ts-project
Updated build for crytojs
This commit is contained in:
parent
8453af2efa
commit
59d4873781
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
@ -1 +1 @@
|
|||||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAIiB;AAER,uFALL,eAAM,OAKK;AAAE,sGAJb,8BAAqB,OAIa;AAAE,kGAHpC,0BAAiB,OAGoC"}
|
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAA2E;AAElE,uFAFA,eAAM,OAEA;AAAE,sGAFA,8BAAqB,OAEA;AAAE,kGAFA,0BAAiB,OAEA"}
|
4
dist/util/file.util.d.ts
vendored
4
dist/util/file.util.d.ts
vendored
@ -2,3 +2,7 @@ export declare const readFileToStringDefaultEncoding: (
|
|||||||
relativeFilePath: string
|
relativeFilePath: string
|
||||||
) => string
|
) => string
|
||||||
export declare const readFileToJson: (relativeFilePath: string) => any
|
export declare const readFileToJson: (relativeFilePath: string) => any
|
||||||
|
export declare const writeFileFromString: (
|
||||||
|
relativeFilePath: string,
|
||||||
|
content: string
|
||||||
|
) => void
|
||||||
|
14
dist/util/file.util.js
vendored
14
dist/util/file.util.js
vendored
@ -43,7 +43,10 @@ var __importStar =
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
Object.defineProperty(exports, "__esModule", { value: true })
|
Object.defineProperty(exports, "__esModule", { value: true })
|
||||||
exports.readFileToJson = exports.readFileToStringDefaultEncoding = void 0
|
exports.writeFileFromString =
|
||||||
|
exports.readFileToJson =
|
||||||
|
exports.readFileToStringDefaultEncoding =
|
||||||
|
void 0
|
||||||
var fs = __importStar(require("fs"))
|
var fs = __importStar(require("fs"))
|
||||||
var path = __importStar(require("path"))
|
var path = __importStar(require("path"))
|
||||||
var config_1 = require("../config")
|
var config_1 = require("../config")
|
||||||
@ -58,4 +61,13 @@ var readFileToJson = function (relativeFilePath) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
exports.readFileToJson = readFileToJson
|
exports.readFileToJson = readFileToJson
|
||||||
|
var writeFileFromString = function (relativeFilePath, content) {
|
||||||
|
var baseDir = path.dirname(relativeFilePath)
|
||||||
|
var absolutePath = path.resolve(relativeFilePath)
|
||||||
|
if (!fs.existsSync(baseDir)) {
|
||||||
|
fs.mkdirSync(baseDir, { recursive: true })
|
||||||
|
}
|
||||||
|
fs.writeFileSync(absolutePath, content)
|
||||||
|
}
|
||||||
|
exports.writeFileFromString = writeFileFromString
|
||||||
//# sourceMappingURL=file.util.js.map
|
//# sourceMappingURL=file.util.js.map
|
||||||
|
2
dist/util/file.util.js.map
vendored
2
dist/util/file.util.js.map
vendored
@ -1 +1 @@
|
|||||||
{"version":3,"file":"file.util.js","sourceRoot":"","sources":["../../src/util/file.util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAwB;AACxB,yCAA4B;AAC5B,oCAAiD;AAE1C,IAAM,+BAA+B,GAAG,UAC3C,gBAAwB;IAExB,IAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;IACnD,OAAO,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,8BAAqB,CAAC,CAAA;AAC/D,CAAC,CAAA;AALY,QAAA,+BAA+B,mCAK3C;AAEM,IAAM,cAAc,GAAG,UAAC,gBAAwB;IACnD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAA,uCAA+B,EAAC,gBAAgB,CAAC,CAAC,CAAA;AACxE,CAAC,CAAA;AAFY,QAAA,cAAc,kBAE1B"}
|
{"version":3,"file":"file.util.js","sourceRoot":"","sources":["../../src/util/file.util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAwB;AACxB,yCAA4B;AAC5B,oCAAiD;AAE1C,IAAM,+BAA+B,GAAG,UAC3C,gBAAwB;IAExB,IAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;IACnD,OAAO,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,8BAAqB,CAAC,CAAA;AAC/D,CAAC,CAAA;AALY,QAAA,+BAA+B,mCAK3C;AAEM,IAAM,cAAc,GAAG,UAAC,gBAAwB;IACnD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAA,uCAA+B,EAAC,gBAAgB,CAAC,CAAC,CAAA;AACxE,CAAC,CAAA;AAFY,QAAA,cAAc,kBAE1B;AAEM,IAAM,mBAAmB,GAAG,UAC/B,gBAAwB,EACxB,OAAe;IAEf,IAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;IAC9C,IAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;IAEnD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;QACzB,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;KAC7C;IAED,EAAE,CAAC,aAAa,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;AAC3C,CAAC,CAAA;AAZY,QAAA,mBAAmB,uBAY/B"}
|
Loading…
Reference in New Issue
Block a user