Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/rollup/dist/shared/watch-cli.js

    rd565449 r0c6b92a  
    11/*
    22  @license
    3         Rollup.js v4.20.0
    4         Sat, 03 Aug 2024 04:48:21 GMT - commit df12edfea6e9c1a71bda1a01bed1ab787b7514d5
     3        Rollup.js v4.27.4
     4        Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
    55
    66        https://github.com/rollup/rollup
     
    1212Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
    1313
     14const index = require('./index.js');
    1415const promises = require('node:fs/promises');
    1516const process$2 = require('node:process');
    16 const index = require('./index.js');
    1717const cli = require('../bin/rollup');
    1818const rollup = require('./rollup.js');
     
    2121const node_child_process = require('node:child_process');
    2222const rollup_js = require('../rollup.js');
     23require('path');
    2324require('fs');
    2425require('util');
    2526require('stream');
    26 require('path');
    2727require('os');
    2828require('./fsevents-importer.js');
     
    540540        });
    541541    }
    542     async function close(code) {
     542    function close(code) {
    543543        process$2.removeListener('uncaughtException', closeWithError);
    544544        // removing a non-existent listener is a no-op
    545545        process$2.stdin.removeListener('end', close);
    546         if (watcher)
    547             await watcher.close();
    548546        if (configWatcher)
    549547            configWatcher.close();
    550         if (code)
    551             process$2.exit(code);
     548        Promise.resolve(watcher?.close()).finally(() => {
     549            process$2.exit(typeof code === 'number' ? code : 0);
     550        });
     551        // Tell signal-exit that we are handling this gracefully
     552        return true;
    552553    }
    553554    // return a promise that never resolves to keep the process running
Note: See TracChangeset for help on using the changeset viewer.