UNPKG

@intlayer/chokidar

Version:

Uses chokidar to scan and build Intlayer declaration files into dictionaries based on Intlayer configuration.

72 lines 3.87 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var index_exports = {}; __export(index_exports, { buildAndWatchIntlayer: () => import_watcher.buildAndWatchIntlayer, buildDictionary: () => import_declaration_file_to_dictionary.buildDictionary, checkDictionaryChanges: () => import_checkDictionaryChanges.checkDictionaryChanges, createDictionaryEntryPoint: () => import_createDictionaryEntryPoint.createDictionaryEntryPoint, createModuleAugmentation: () => import_createModuleAugmentation.createModuleAugmentation, fetchDistantDictionaries: () => import_fetchDistantDictionaries.fetchDistantDictionaries, fetchDistantDictionaryKeys: () => import_fetchDistantDictionaryKeys.fetchDistantDictionaryKeys, handleAdditionalContentDeclarationFile: () => import_watcher.handleAdditionalContentDeclarationFile, handleContentDeclarationFileChange: () => import_watcher.handleContentDeclarationFileChange, listDictionaries: () => import_listDictionariesPath.listDictionaries, loadDictionaries: () => import_loadDictionaries.loadDictionaries, loadDistantDictionaries: () => import_loadDictionaries.loadDistantDictionaries, loadLocalDictionaries: () => import_loadDictionaries.loadLocalDictionaries, prepareContentDeclaration: () => import_prepareContentDeclaration.prepareContentDeclaration, prepareIntlayer: () => import_prepareIntlayer.prepareIntlayer, watch: () => import_watcher.watch, writeContentDeclaration: () => import_writeContentDeclaration.writeContentDeclaration }); module.exports = __toCommonJS(index_exports); var import_watcher = require('./chokidar/watcher.cjs'); var import_prepareIntlayer = require('./prepareIntlayer.cjs'); var import_declaration_file_to_dictionary = require('./transpiler/declaration_file_to_dictionary/index.cjs'); var import_createDictionaryEntryPoint = require('./transpiler/dictionary_to_main/createDictionaryEntryPoint.cjs'); var import_createModuleAugmentation = require('./transpiler/dictionary_to_type/createModuleAugmentation.cjs'); var import_fetchDistantDictionaries = require('./fetchDistantDictionaries.cjs'); var import_fetchDistantDictionaryKeys = require('./fetchDistantDictionaryKeys.cjs'); var import_loadDictionaries = require('./loadDictionaries/index.cjs'); var import_checkDictionaryChanges = require('./checkDictionaryChanges.cjs'); var import_listDictionariesPath = require('./listDictionariesPath.cjs'); var import_prepareContentDeclaration = require('./prepareContentDeclaration.cjs'); var import_writeContentDeclaration = require('./writeContentDeclaration/index.cjs'); // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { buildAndWatchIntlayer, buildDictionary, checkDictionaryChanges, createDictionaryEntryPoint, createModuleAugmentation, fetchDistantDictionaries, fetchDistantDictionaryKeys, handleAdditionalContentDeclarationFile, handleContentDeclarationFileChange, listDictionaries, loadDictionaries, loadDistantDictionaries, loadLocalDictionaries, prepareContentDeclaration, prepareIntlayer, watch, writeContentDeclaration }); //# sourceMappingURL=index.cjs.map