Match-id-07be7b9208093aa629229828dc6395fc8e768437
This commit is contained in:
parent
3d2b561616
commit
2bf6159961
|
@ -0,0 +1,74 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
|
||||
*
|
||||
* openGauss is licensed under Mulan PSL v2.
|
||||
* You can use this software according to the terms and conditions of the Mulan PSL v2.
|
||||
* You may obtain a copy of Mulan PSL v2 at:
|
||||
*
|
||||
* http://license.coscl.org.cn/MulanPSL2
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
|
||||
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
||||
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/eslint-recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'prettier',
|
||||
],
|
||||
root: true,
|
||||
|
||||
plugins: ['jest', 'no-for-of-loops', 'no-function-declare-after-return', 'react', '@typescript-eslint'],
|
||||
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
ecmaVersion: 8,
|
||||
sourceType: 'module',
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
modules: true,
|
||||
experimentalObjectRestSpread: true,
|
||||
},
|
||||
},
|
||||
env: {
|
||||
browser: true,
|
||||
jest: true,
|
||||
node: true,
|
||||
es6: true,
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||
'@typescript-eslint/no-empty-function': 'off',
|
||||
semi: ['warn', 'always'],
|
||||
quotes: ['warn', 'single'],
|
||||
'accessor-pairs': 'off',
|
||||
'brace-style': ['error', '1tbs'],
|
||||
'func-style': ['warn', 'declaration', { allowArrowFunctions: true }],
|
||||
'max-lines-per-function': 'off',
|
||||
'object-curly-newline': 'off',
|
||||
// 尾随逗号
|
||||
'comma-dangle': ['error', 'only-multiline'],
|
||||
|
||||
'no-constant-condition': 'off',
|
||||
'no-for-of-loops/no-for-of-loops': 'error',
|
||||
'no-function-declare-after-return/no-function-declare-after-return': 'error',
|
||||
},
|
||||
globals: {
|
||||
isDev: true,
|
||||
isTest: true,
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ['scripts/tests/**/*.js'],
|
||||
globals: {
|
||||
container: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
|
@ -0,0 +1,15 @@
|
|||
module.exports = {
|
||||
printWidth: 120, // 一行120字符数,如果超过会进行换行
|
||||
tabWidth: 2, // tab等2个空格
|
||||
useTabs: false, // 用空格缩进行
|
||||
semi: true, // 行尾使用分号
|
||||
singleQuote: true, // 字符串使用单引号
|
||||
quoteProps: 'as-needed', // 仅在需要时在对象属性添加引号
|
||||
jsxSingleQuote: false, // 在JSX中使用双引号
|
||||
trailingComma: 'es5', // 使用尾逗号(对象、数组等)
|
||||
bracketSpacing: true, // 对象的括号间增加空格
|
||||
bracketSameLine: false, // 将多行JSX元素的>放在最后一行的末尾
|
||||
arrowParens: 'avoid', // 在唯一的arrow函数参数周围省略括号
|
||||
vueIndentScriptAndStyle: false, // 不缩进Vue文件中的<script>和<style>标记内的代码
|
||||
endOfLine: 'lf', // 仅限换行(\n)
|
||||
};
|
|
@ -0,0 +1,3 @@
|
|||
# Inula-Intl
|
||||
|
||||
Inula-intl 是 inula 提供的生态组件,主要提供了国际化功能,涵盖了基本的国际化组件和钩子函数,便于用户构建具备国际化能力的前端界面。在 Inula-intl 中使用国际化时,无论是组件或者 Hooks,其目的就是获取当前应用程序的国际化实例,该实例提供了处理多语言文本、日期、时间等功能。
|
|
@ -0,0 +1,26 @@
|
|||
const {preset} = require("./jest.config");
|
||||
module.exports = {
|
||||
presets: [
|
||||
[
|
||||
'@babel/preset-env',
|
||||
{
|
||||
targets: {
|
||||
browsers: ['> 1%', 'last 2 versions', 'not ie <= 8'],
|
||||
node: 'current',
|
||||
},
|
||||
useBuiltIns: 'usage',
|
||||
corejs: 3,
|
||||
},
|
||||
],
|
||||
[
|
||||
'@babel/preset-typescript',
|
||||
],
|
||||
[
|
||||
"@babel/preset-react",
|
||||
{
|
||||
"runtime": "automatic",
|
||||
"importSource": "inulajs"
|
||||
}
|
||||
]
|
||||
],
|
||||
};
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
|
||||
*/
|
||||
|
||||
import Inula, { useState } from 'inulajs';
|
||||
import { IntlProvider } from "../index";
|
||||
import zh from "./locale/zh";
|
||||
import en from "./locale/en";
|
||||
import Example1 from "./components/Example1";
|
||||
import Example2 from "./components/Example2";
|
||||
import Example3 from "./components/Example3";
|
||||
import Example4 from "./components/Example4";
|
||||
import Example5 from "./components/Example5";
|
||||
import Example6 from "./components/Example6";
|
||||
|
||||
const App = () => {
|
||||
const [locale, setLocale] = useState('zh');
|
||||
const handleChange = () => {
|
||||
locale === 'zh' ? setLocale('en') : setLocale('zh');
|
||||
};
|
||||
const message = locale === 'zh' ? zh : en
|
||||
|
||||
|
||||
return (
|
||||
<IntlProvider locale={locale} messages={locale === 'zh' ? zh : en}>
|
||||
<header>Inula-Intl API Test Demo</header>
|
||||
|
||||
<div className='container'>
|
||||
<Example1/>
|
||||
<Example2/>
|
||||
<Example3/>
|
||||
</div>
|
||||
<div className='container'>
|
||||
<Example4 locale={locale} messages={message}/>
|
||||
<Example5/>
|
||||
<Example6 locale={{ locale }} messages={message}/>
|
||||
</div>
|
||||
<div className='button'>
|
||||
<button onClick={handleChange}>切换语言</button>
|
||||
</div>
|
||||
</IntlProvider>
|
||||
);
|
||||
}
|
||||
|
||||
export default App
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
|
||||
*/
|
||||
|
||||
import Inula from "inulajs";
|
||||
import { useIntl } from "../../index";
|
||||
|
||||
const Example1 = () => {
|
||||
const { i18n } = useIntl();
|
||||
|
||||
return (
|
||||
<div className="card">
|
||||
<h2>useIntl方式测试Demo</h2>
|
||||
<pre>{i18n.formatMessage({ id: 'text1' })}</pre>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Example1;
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
|
||||
*/
|
||||
import Inula from "inulajs";
|
||||
import { FormattedMessage } from "../../index";
|
||||
|
||||
const Example2= () => {
|
||||
|
||||
return (
|
||||
<div className="card">
|
||||
<h2>FormattedMessage方式测试Demo</h2>
|
||||
<pre>
|
||||
<FormattedMessage id='text2'/>
|
||||
</pre>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Example2;
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
|
||||
*/
|
||||
|
||||
import Inula from 'inulajs';
|
||||
import { FormattedMessage } from "../../index";
|
||||
|
||||
const Example3 = (props) => {
|
||||
const { locale, setLocale } = props;
|
||||
return (
|
||||
<div className="card">
|
||||
<h2>FormattedMessage方式测试Demo</h2>
|
||||
<pre>
|
||||
<button className="testButton" onClick={() => {
|
||||
setLocale(locale === 'zh' ? 'en' : 'zh')
|
||||
}}>
|
||||
<FormattedMessage id={'button'}/>
|
||||
</button>
|
||||
<br/>
|
||||
</pre>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default Example3;
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
|
||||
*/
|
||||
|
||||
import Inula from "inulajs";
|
||||
import { createIntl } from "../../index";
|
||||
|
||||
const Example4 = (props) => {
|
||||
// 受渲染时机影响,createIntl方式需控制时序,否则慢一拍
|
||||
const intl = createIntl({ ...props });
|
||||
const msg = intl.formatMessage({ id: 'text3' });
|
||||
|
||||
return (
|
||||
<div className="card">
|
||||
<h2>createIntl方式测试Demo</h2>
|
||||
<pre>{msg}</pre>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Example4;
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
|
||||
*/
|
||||
|
||||
import Inula, { Component } from 'inulajs';
|
||||
import { injectIntl } from '../../index';
|
||||
|
||||
class Example5 extends Component<any, any, any> {
|
||||
public constructor(props: any, context) {
|
||||
super(props, context);
|
||||
}
|
||||
|
||||
render() {
|
||||
const { intl } = this.props as any;
|
||||
return (
|
||||
<div className="card">
|
||||
<h2>injectIntl方式测试Demo</h2>
|
||||
<pre>{intl.formatMessage({ id: 'text4' })}</pre>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default injectIntl(Example5);
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
|
||||
*/
|
||||
|
||||
import Inula from "inulajs";
|
||||
import { createIntl, createIntlCache, RawIntlProvider } from "../../index";
|
||||
import Example6Child from "./Example6Child";
|
||||
|
||||
const Example6 = (props: any) => {
|
||||
|
||||
const { locale, messages } = props;
|
||||
|
||||
const cache = createIntlCache();
|
||||
let i18n = createIntl(
|
||||
{ locale: locale, messages: messages },
|
||||
cache
|
||||
);
|
||||
|
||||
return (
|
||||
<RawIntlProvider value={i18n}>
|
||||
<Example6Child/>
|
||||
</RawIntlProvider>
|
||||
);
|
||||
}
|
||||
|
||||
export default Example6;
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
|
||||
*/
|
||||
|
||||
import { useIntl } from "../../index";
|
||||
|
||||
const Example6Child = (props: any) => {
|
||||
|
||||
const {formatMessage} = useIntl();
|
||||
|
||||
return (
|
||||
<div className="card">
|
||||
<h2>RawIntlProvider方式测试Demo</h2>
|
||||
<pre>{formatMessage({ id: 'text4' })}</pre>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default Example6Child;
|
|
@ -0,0 +1,102 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Inula-Intl API Test</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f8f8f8;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
header {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 80px;
|
||||
background-color: #007bff;
|
||||
color: #fff;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin-top: 50px;
|
||||
color: #2c3e50;
|
||||
font-size: 36px;
|
||||
}
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: #fff;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 0 5px #aaa;
|
||||
width: 400px;
|
||||
padding: 20px;
|
||||
margin: 20px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
box-shadow: 0 0 15px #aaa;
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
|
||||
.card h2 {
|
||||
margin-bottom: 10px;
|
||||
font-size: 24px;
|
||||
color: #2c3e50;
|
||||
}
|
||||
|
||||
.card pre {
|
||||
background-color: #f0f0f0;
|
||||
padding: 10px;
|
||||
font-size: 14px;
|
||||
border-radius: 5px;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.button {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.testButton {
|
||||
width: 350px;
|
||||
}
|
||||
|
||||
button {
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
background-color: #007bff;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
padding: 10px 20px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
|
||||
*/
|
||||
import * as Inula from 'inulajs';
|
||||
import App from './App'
|
||||
|
||||
function render() {
|
||||
Inula.render(
|
||||
<>
|
||||
<App/>
|
||||
</>,
|
||||
document.querySelector('#root') as any
|
||||
)
|
||||
}
|
||||
render();
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
|
||||
*/
|
||||
|
||||
export default {
|
||||
button: 'Welcome to the Horizon-Intl component!',
|
||||
text1: 'Welcome to the Horizon-Intl component!',
|
||||
text2: 'Welcome to the Horizon-Intl component!',
|
||||
text3: 'Welcome to the Horizon-Intl component!',
|
||||
text4: 'Welcome to the Horizon-Intl component!',
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
|
||||
*/
|
||||
export default {
|
||||
button: '欢迎使用国际化组件!',
|
||||
text1: '欢迎使用国际化组件!',
|
||||
text2: '欢迎使用国际化组件!',
|
||||
text3: '欢迎使用国际化组件!',
|
||||
text4: '欢迎使用国际化组件!',
|
||||
};
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
|
||||
*/
|
||||
|
||||
import DateTimeFormatter from './src/format/fomatters/DateTimeFormatter';
|
||||
import NumberFormatter from './src/format/fomatters/NumberFormatter';
|
||||
import I18n from './src/core/I18n';
|
||||
import createI18nCache from './src/format/cache/cache';
|
||||
import FormattedMessage from './src/core/components/FormattedMessage';
|
||||
import I18nProvider from './src/core/components/I18nProvider';
|
||||
import injectIntl, { I18nContext, InjectProvider } from './src/core/components/InjectI18n';
|
||||
import useI18n from './src/core/hook/useI18n';
|
||||
import createI18n from './src/core/createI18n';
|
||||
import { InjectedIntl, MessageDescriptor } from './src/types/interfaces';
|
||||
// 函数API
|
||||
export {
|
||||
I18n,
|
||||
createI18nCache as createIntlCache,
|
||||
createI18n as createIntl,
|
||||
DateTimeFormatter,
|
||||
NumberFormatter,
|
||||
useI18n as useIntl,
|
||||
};
|
||||
|
||||
// 组件
|
||||
export {
|
||||
FormattedMessage,
|
||||
I18nContext,
|
||||
I18nProvider as IntlProvider,
|
||||
injectIntl as injectIntl,
|
||||
InjectProvider as RawIntlProvider,
|
||||
};
|
||||
|
||||
// 用于定义文本
|
||||
export function defineMessages<K extends keyof any, T = MessageDescriptor, U = Record<K, T>>(msgs: U): U {
|
||||
return msgs;
|
||||
}
|
||||
|
||||
export function defineMessage<T>(msg: T): T {
|
||||
return msg;
|
||||
}
|
||||
|
||||
export interface InjectedIntlProps {
|
||||
intl: InjectedIntl;
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
module.exports = {
|
||||
coverageDirectory: 'coverage',
|
||||
resetModules: true,
|
||||
preset: 'ts-jest/presets/js-with-ts',
|
||||
rootDir: process.cwd(),
|
||||
testMatch: [
|
||||
'<rootDir>/tests/**/*.test.[jt]s?(x)'
|
||||
],
|
||||
moduleFileExtensions: ['ts', 'js', 'jsx', 'tsx'],
|
||||
moduleDirectories: ['node_modules', 'src'],
|
||||
moduleNameMapper: {
|
||||
'^@/(.*)$': '<rootDir>/tests/$1',
|
||||
},
|
||||
transform: {
|
||||
"^.+\\.(ts|js|jsx|tsx)$": "babel-jest"
|
||||
},
|
||||
globals: {
|
||||
"ts-jest": {
|
||||
"tsconfig": "tsconfig.json"
|
||||
}
|
||||
},
|
||||
|
||||
testEnvironment: 'jsdom',
|
||||
};
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\cli.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\cli.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\cli.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\cli.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\cli.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\cli.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\lib\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules\babel\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\babel@6.23.0\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules/babel/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/babel@6.23.0/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/babel@6.23.0/node_modules/babel/lib/cli.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules/jest/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules/jest/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules/jest/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules/jest/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules/jest/bin/jest.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules/jest/bin/jest.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\jest@29.3.1_546szy65dvhukjyz7aaas7covq\node_modules\jest\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\jest@29.3.1_546szy65dvhukjyz7aaas7covq\node_modules\jest\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\jest@29.3.1_546szy65dvhukjyz7aaas7covq\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\jest@29.3.1_546szy65dvhukjyz7aaas7covq\node_modules\jest\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\jest@29.3.1_546szy65dvhukjyz7aaas7covq\node_modules\jest\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\jest@29.3.1_546szy65dvhukjyz7aaas7covq\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\jest@29.3.1_546szy65dvhukjyz7aaas7covq\node_modules\jest\bin\jest.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\jest@29.3.1_546szy65dvhukjyz7aaas7covq\node_modules\jest\bin\jest.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\jest@29.3.1_546szy65dvhukjyz7aaas7covq\node_modules\jest\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\jest@29.3.1_546szy65dvhukjyz7aaas7covq\node_modules\jest\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\jest@29.3.1_546szy65dvhukjyz7aaas7covq\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules/jest/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules/jest/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules/jest/bin/jest.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules/jest/bin/jest.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules/jest/bin/jest.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/jest@29.3.1_546szy65dvhukjyz7aaas7covq/node_modules/jest/bin/jest.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/prettier@2.8.8/node_modules/prettier/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/prettier@2.8.8/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/prettier@2.8.8/node_modules/prettier/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/prettier@2.8.8/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/prettier@2.8.8/node_modules/prettier/bin-prettier.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/prettier@2.8.8/node_modules/prettier/bin-prettier.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\prettier@2.8.8\node_modules\prettier\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\prettier@2.8.8\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\prettier@2.8.8\node_modules\prettier\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\prettier@2.8.8\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\prettier@2.8.8\node_modules\prettier\bin-prettier.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\prettier@2.8.8\node_modules\prettier\bin-prettier.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\prettier@2.8.8\node_modules\prettier\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\prettier@2.8.8\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/prettier@2.8.8/node_modules/prettier/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/prettier@2.8.8/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/prettier@2.8.8/node_modules/prettier/bin-prettier.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/prettier@2.8.8/node_modules/prettier/bin-prettier.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/prettier@2.8.8/node_modules/prettier/bin-prettier.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/prettier@2.8.8/node_modules/prettier/bin-prettier.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/dist/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/rollup@2.79.1/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/dist/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/rollup@2.79.1/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/dist/bin/rollup" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/dist/bin/rollup" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\rollup@2.79.1\node_modules\rollup\dist\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\rollup@2.79.1\node_modules\rollup\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\rollup@2.79.1\node_modules\rollup\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\rollup@2.79.1\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\rollup@2.79.1\node_modules\rollup\dist\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\rollup@2.79.1\node_modules\rollup\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\rollup@2.79.1\node_modules\rollup\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\rollup@2.79.1\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\rollup@2.79.1\node_modules\rollup\dist\bin\rollup" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\rollup@2.79.1\node_modules\rollup\dist\bin\rollup" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\rollup@2.79.1\node_modules\rollup\dist\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\rollup@2.79.1\node_modules\rollup\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\rollup@2.79.1\node_modules\rollup\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\rollup@2.79.1\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/dist/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/rollup@2.79.1/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/dist/bin/rollup" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/dist/bin/rollup" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/dist/bin/rollup" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/rollup@2.79.1/node_modules/rollup/dist/bin/rollup" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4/node_modules/ts-jest/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4/node_modules/ts-jest/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4/node_modules/ts-jest/cli.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4/node_modules/ts-jest/cli.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4\node_modules\ts-jest\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4\node_modules\ts-jest\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4\node_modules\ts-jest\cli.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4\node_modules\ts-jest\cli.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4\node_modules\ts-jest\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4/node_modules/ts-jest/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4/node_modules/ts-jest/cli.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4/node_modules/ts-jest/cli.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4/node_modules/ts-jest/cli.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/ts-jest@29.0.3_rs3a3edxxtys6ny54uvggbtbb4/node_modules/ts-jest/cli.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-cwd.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-cwd.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\bin-cwd.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\bin-cwd.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-cwd.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-cwd.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-cwd.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-cwd.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-esm.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-esm.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\bin-esm.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\bin-esm.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-esm.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-esm.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-esm.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-esm.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-script.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-script.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\bin-script.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\bin-script.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-script.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-script.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-script.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-script.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-transpile.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-transpile.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\bin-transpile.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\bin-transpile.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-transpile.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-transpile.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-transpile.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-transpile.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\bin.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\bin.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-script-deprecated.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-script-deprecated.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\bin-script-deprecated.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\bin-script-deprecated.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\dist\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules\ts-node\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-script-deprecated.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-script-deprecated.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-script-deprecated.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/ts-node@10.9.1_tzepeamedmplryaaoeufhw5k7u/node_modules/ts-node/dist/bin-script-deprecated.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/tsc" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/tsc" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\bin\tsc" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\bin\tsc" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/tsc" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/tsc" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/tsc" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/tsc" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/tsserver" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/tsserver" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\bin\tsserver" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\bin\tsserver" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules\typescript\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\typescript@4.9.3\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/typescript@4.9.3/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/tsserver" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/tsserver" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/tsserver" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/typescript@4.9.3/node_modules/typescript/bin/tsserver" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules/webpack/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules/webpack/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules/webpack/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules/webpack/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules/webpack/bin/webpack.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules/webpack/bin/webpack.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules/webpack-cli/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules/webpack-cli/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules/webpack-cli/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules/webpack-cli/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules/webpack-cli/bin/cli.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules/webpack-cli/bin/cli.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq\node_modules\webpack-cli\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq\node_modules\webpack-cli\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq\node_modules\webpack-cli\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq\node_modules\webpack-cli\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq\node_modules\webpack-cli\bin\cli.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq\node_modules\webpack-cli\bin\cli.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq\node_modules\webpack-cli\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq\node_modules\webpack-cli\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules/webpack-cli/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules/webpack-cli/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules/webpack-cli/bin/cli.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules/webpack-cli/bin/cli.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules/webpack-cli/bin/cli.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/webpack-cli@5.1.4_55ctblq7vmnkc7msvxpxtdxasq/node_modules/webpack-cli/bin/cli.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -z "$NODE_PATH" ]; then
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules/webpack-dev-server/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules/webpack-dev-server/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
else
|
||||
export NODE_PATH="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules/webpack-dev-server/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules/webpack-dev-server/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||
fi
|
||||
if [ -x "$basedir/node" ]; then
|
||||
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules/webpack-dev-server/bin/webpack-dev-server.js" "$@"
|
||||
else
|
||||
exec node "$basedir/../../../../node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules/webpack-dev-server/bin/webpack-dev-server.js" "$@"
|
||||
fi
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4\node_modules\webpack-dev-server\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4\node_modules\webpack-dev-server\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4\node_modules\webpack-dev-server\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4\node_modules\webpack-dev-server\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4\node_modules\webpack-dev-server\bin\webpack-dev-server.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4\node_modules\webpack-dev-server\bin\webpack-dev-server.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4\node_modules\webpack-dev-server\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4\node_modules\webpack-dev-server\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules/webpack-dev-server/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules/webpack-dev-server/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules/webpack-dev-server/bin/webpack-dev-server.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules/webpack-dev-server/bin/webpack-dev-server.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules/webpack-dev-server/bin/webpack-dev-server.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/webpack-dev-server@4.15.1_w46lltld4evug5kpkz4iei6qt4/node_modules/webpack-dev-server/bin/webpack-dev-server.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,12 @@
|
|||
@SETLOCAL
|
||||
@IF NOT DEFINED NODE_PATH (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack@5.88.2_webpack-cli@5.1.4\node_modules\webpack\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack@5.88.2_webpack-cli@5.1.4\node_modules\webpack\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack@5.88.2_webpack-cli@5.1.4\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
) ELSE (
|
||||
@SET "NODE_PATH=D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack@5.88.2_webpack-cli@5.1.4\node_modules\webpack\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack@5.88.2_webpack-cli@5.1.4\node_modules\webpack\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack@5.88.2_webpack-cli@5.1.4\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules;%NODE_PATH%"
|
||||
)
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\node_modules\.pnpm\webpack@5.88.2_webpack-cli@5.1.4\node_modules\webpack\bin\webpack.js" %*
|
||||
) ELSE (
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\node_modules\.pnpm\webpack@5.88.2_webpack-cli@5.1.4\node_modules\webpack\bin\webpack.js" %*
|
||||
)
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||
|
||||
$exe=""
|
||||
$pathsep=":"
|
||||
$env_node_path=$env:NODE_PATH
|
||||
$new_node_path="D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack@5.88.2_webpack-cli@5.1.4\node_modules\webpack\bin\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack@5.88.2_webpack-cli@5.1.4\node_modules\webpack\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\webpack@5.88.2_webpack-cli@5.1.4\node_modules;D:\code\MRcode\horizon-core\node_modules\.pnpm\node_modules"
|
||||
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||
# Fix case when both the Windows and Linux builds of Node
|
||||
# are installed in the same directory
|
||||
$exe=".exe"
|
||||
$pathsep=";"
|
||||
} else {
|
||||
$new_node_path="/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules/webpack/bin/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules/webpack/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules:/mnt/d/code/MRcode/horizon-core/node_modules/.pnpm/node_modules"
|
||||
}
|
||||
if ([string]::IsNullOrEmpty($env_node_path)) {
|
||||
$env:NODE_PATH=$new_node_path
|
||||
} else {
|
||||
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
||||
}
|
||||
|
||||
$ret=0
|
||||
if (Test-Path "$basedir/node$exe") {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules/webpack/bin/webpack.js" $args
|
||||
} else {
|
||||
& "$basedir/node$exe" "$basedir/../../../../node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules/webpack/bin/webpack.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
} else {
|
||||
# Support pipeline input
|
||||
if ($MyInvocation.ExpectingInput) {
|
||||
$input | & "node$exe" "$basedir/../../../../node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules/webpack/bin/webpack.js" $args
|
||||
} else {
|
||||
& "node$exe" "$basedir/../../../../node_modules/.pnpm/webpack@5.88.2_webpack-cli@5.1.4/node_modules/webpack/bin/webpack.js" $args
|
||||
}
|
||||
$ret=$LASTEXITCODE
|
||||
}
|
||||
$env:NODE_PATH=$env_node_path
|
||||
exit $ret
|
|
@ -0,0 +1,22 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@ -0,0 +1,19 @@
|
|||
# @babel/core
|
||||
|
||||
> Babel compiler core.
|
||||
|
||||
See our website [@babel/core](https://babeljs.io/docs/en/babel-core) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20core%22+is%3Aopen) associated with this package.
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save-dev @babel/core
|
||||
```
|
||||
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add @babel/core --dev
|
||||
```
|
|
@ -0,0 +1,51 @@
|
|||
"use strict";
|
||||
|
||||
const babelP = import("./lib/index.js");
|
||||
let babel = null;
|
||||
Object.defineProperty(exports, "__ initialize @babel/core cjs proxy __", {
|
||||
set(val) {
|
||||
babel = val;
|
||||
},
|
||||
});
|
||||
|
||||
const functionNames = [
|
||||
"createConfigItem",
|
||||
"loadPartialConfig",
|
||||
"loadOptions",
|
||||
"transform",
|
||||
"transformFile",
|
||||
"transformFromAst",
|
||||
"parse",
|
||||
];
|
||||
const propertyNames = ["types", "tokTypes", "traverse", "template", "version"];
|
||||
|
||||
for (const name of functionNames) {
|
||||
exports[name] = function (...args) {
|
||||
babelP.then(babel => {
|
||||
babel[name](...args);
|
||||
});
|
||||
};
|
||||
exports[`${name}Async`] = function (...args) {
|
||||
return babelP.then(babel => babel[`${name}Async`](...args));
|
||||
};
|
||||
exports[`${name}Sync`] = function (...args) {
|
||||
if (!babel) throw notLoadedError(`${name}Sync`, "callable");
|
||||
return babel[`${name}Sync`](...args);
|
||||
};
|
||||
}
|
||||
|
||||
for (const name of propertyNames) {
|
||||
Object.defineProperty(exports, name, {
|
||||
get() {
|
||||
if (!babel) throw notLoadedError(name, "accessible");
|
||||
return babel[name];
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
function notLoadedError(name, keyword) {
|
||||
return new Error(
|
||||
`The \`${name}\` export of @babel/core is only ${keyword}` +
|
||||
` from the CommonJS version after that the ESM version is loaded.`
|
||||
);
|
||||
}
|
3
packages/inula-intl/node_modules/@babel/core/lib/config/cache-contexts.js
generated
vendored
Normal file
3
packages/inula-intl/node_modules/@babel/core/lib/config/cache-contexts.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=cache-contexts.js.map
|
1
packages/inula-intl/node_modules/@babel/core/lib/config/cache-contexts.js.map
generated
vendored
Normal file
1
packages/inula-intl/node_modules/@babel/core/lib/config/cache-contexts.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"names":[],"sources":["../../src/config/cache-contexts.ts"],"sourcesContent":["import type { Targets } from \"@babel/helper-compilation-targets\";\n\nimport type { ConfigContext } from \"./config-chain\";\nimport type { CallerMetadata } from \"./validation/options\";\n\nexport type { ConfigContext as FullConfig };\n\nexport type FullPreset = {\n targets: Targets;\n} & ConfigContext;\nexport type FullPlugin = {\n assumptions: { [name: string]: boolean };\n} & FullPreset;\n\n// Context not including filename since it is used in places that cannot\n// process 'ignore'/'only' and other filename-based logic.\nexport type SimpleConfig = {\n envName: string;\n caller: CallerMetadata | undefined;\n};\nexport type SimplePreset = {\n targets: Targets;\n} & SimpleConfig;\nexport type SimplePlugin = {\n assumptions: {\n [name: string]: boolean;\n };\n} & SimplePreset;\n"],"mappings":""}
|
261
packages/inula-intl/node_modules/@babel/core/lib/config/caching.js
generated
vendored
Normal file
261
packages/inula-intl/node_modules/@babel/core/lib/config/caching.js
generated
vendored
Normal file
|
@ -0,0 +1,261 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.assertSimpleType = assertSimpleType;
|
||||
exports.makeStrongCache = makeStrongCache;
|
||||
exports.makeStrongCacheSync = makeStrongCacheSync;
|
||||
exports.makeWeakCache = makeWeakCache;
|
||||
exports.makeWeakCacheSync = makeWeakCacheSync;
|
||||
function _gensync() {
|
||||
const data = require("gensync");
|
||||
_gensync = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
var _async = require("../gensync-utils/async");
|
||||
var _util = require("./util");
|
||||
const synchronize = gen => {
|
||||
return _gensync()(gen).sync;
|
||||
};
|
||||
function* genTrue() {
|
||||
return true;
|
||||
}
|
||||
function makeWeakCache(handler) {
|
||||
return makeCachedFunction(WeakMap, handler);
|
||||
}
|
||||
function makeWeakCacheSync(handler) {
|
||||
return synchronize(makeWeakCache(handler));
|
||||
}
|
||||
function makeStrongCache(handler) {
|
||||
return makeCachedFunction(Map, handler);
|
||||
}
|
||||
function makeStrongCacheSync(handler) {
|
||||
return synchronize(makeStrongCache(handler));
|
||||
}
|
||||
function makeCachedFunction(CallCache, handler) {
|
||||
const callCacheSync = new CallCache();
|
||||
const callCacheAsync = new CallCache();
|
||||
const futureCache = new CallCache();
|
||||
return function* cachedFunction(arg, data) {
|
||||
const asyncContext = yield* (0, _async.isAsync)();
|
||||
const callCache = asyncContext ? callCacheAsync : callCacheSync;
|
||||
const cached = yield* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data);
|
||||
if (cached.valid) return cached.value;
|
||||
const cache = new CacheConfigurator(data);
|
||||
const handlerResult = handler(arg, cache);
|
||||
let finishLock;
|
||||
let value;
|
||||
if ((0, _util.isIterableIterator)(handlerResult)) {
|
||||
value = yield* (0, _async.onFirstPause)(handlerResult, () => {
|
||||
finishLock = setupAsyncLocks(cache, futureCache, arg);
|
||||
});
|
||||
} else {
|
||||
value = handlerResult;
|
||||
}
|
||||
updateFunctionCache(callCache, cache, arg, value);
|
||||
if (finishLock) {
|
||||
futureCache.delete(arg);
|
||||
finishLock.release(value);
|
||||
}
|
||||
return value;
|
||||
};
|
||||
}
|
||||
function* getCachedValue(cache, arg, data) {
|
||||
const cachedValue = cache.get(arg);
|
||||
if (cachedValue) {
|
||||
for (const {
|
||||
value,
|
||||
valid
|
||||
} of cachedValue) {
|
||||
if (yield* valid(data)) return {
|
||||
valid: true,
|
||||
value
|
||||
};
|
||||
}
|
||||
}
|
||||
return {
|
||||
valid: false,
|
||||
value: null
|
||||
};
|
||||
}
|
||||
function* getCachedValueOrWait(asyncContext, callCache, futureCache, arg, data) {
|
||||
const cached = yield* getCachedValue(callCache, arg, data);
|
||||
if (cached.valid) {
|
||||
return cached;
|
||||
}
|
||||
if (asyncContext) {
|
||||
const cached = yield* getCachedValue(futureCache, arg, data);
|
||||
if (cached.valid) {
|
||||
const value = yield* (0, _async.waitFor)(cached.value.promise);
|
||||
return {
|
||||
valid: true,
|
||||
value
|
||||
};
|
||||
}
|
||||
}
|
||||
return {
|
||||
valid: false,
|
||||
value: null
|
||||
};
|
||||
}
|
||||
function setupAsyncLocks(config, futureCache, arg) {
|
||||
const finishLock = new Lock();
|
||||
updateFunctionCache(futureCache, config, arg, finishLock);
|
||||
return finishLock;
|
||||
}
|
||||
function updateFunctionCache(cache, config, arg, value) {
|
||||
if (!config.configured()) config.forever();
|
||||
let cachedValue = cache.get(arg);
|
||||
config.deactivate();
|
||||
switch (config.mode()) {
|
||||
case "forever":
|
||||
cachedValue = [{
|
||||
value,
|
||||
valid: genTrue
|
||||
}];
|
||||
cache.set(arg, cachedValue);
|
||||
break;
|
||||
case "invalidate":
|
||||
cachedValue = [{
|
||||
value,
|
||||
valid: config.validator()
|
||||
}];
|
||||
cache.set(arg, cachedValue);
|
||||
break;
|
||||
case "valid":
|
||||
if (cachedValue) {
|
||||
cachedValue.push({
|
||||
value,
|
||||
valid: config.validator()
|
||||
});
|
||||
} else {
|
||||
cachedValue = [{
|
||||
value,
|
||||
valid: config.validator()
|
||||
}];
|
||||
cache.set(arg, cachedValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
class CacheConfigurator {
|
||||
constructor(data) {
|
||||
this._active = true;
|
||||
this._never = false;
|
||||
this._forever = false;
|
||||
this._invalidate = false;
|
||||
this._configured = false;
|
||||
this._pairs = [];
|
||||
this._data = void 0;
|
||||
this._data = data;
|
||||
}
|
||||
simple() {
|
||||
return makeSimpleConfigurator(this);
|
||||
}
|
||||
mode() {
|
||||
if (this._never) return "never";
|
||||
if (this._forever) return "forever";
|
||||
if (this._invalidate) return "invalidate";
|
||||
return "valid";
|
||||
}
|
||||
forever() {
|
||||
if (!this._active) {
|
||||
throw new Error("Cannot change caching after evaluation has completed.");
|
||||
}
|
||||
if (this._never) {
|
||||
throw new Error("Caching has already been configured with .never()");
|
||||
}
|
||||
this._forever = true;
|
||||
this._configured = true;
|
||||
}
|
||||
never() {
|
||||
if (!this._active) {
|
||||
throw new Error("Cannot change caching after evaluation has completed.");
|
||||
}
|
||||
if (this._forever) {
|
||||
throw new Error("Caching has already been configured with .forever()");
|
||||
}
|
||||
this._never = true;
|
||||
this._configured = true;
|
||||
}
|
||||
using(handler) {
|
||||
if (!this._active) {
|
||||
throw new Error("Cannot change caching after evaluation has completed.");
|
||||
}
|
||||
if (this._never || this._forever) {
|
||||
throw new Error("Caching has already been configured with .never or .forever()");
|
||||
}
|
||||
this._configured = true;
|
||||
const key = handler(this._data);
|
||||
const fn = (0, _async.maybeAsync)(handler, `You appear to be using an async cache handler, but Babel has been called synchronously`);
|
||||
if ((0, _async.isThenable)(key)) {
|
||||
return key.then(key => {
|
||||
this._pairs.push([key, fn]);
|
||||
return key;
|
||||
});
|
||||
}
|
||||
this._pairs.push([key, fn]);
|
||||
return key;
|
||||
}
|
||||
invalidate(handler) {
|
||||
this._invalidate = true;
|
||||
return this.using(handler);
|
||||
}
|
||||
validator() {
|
||||
const pairs = this._pairs;
|
||||
return function* (data) {
|
||||
for (const [key, fn] of pairs) {
|
||||
if (key !== (yield* fn(data))) return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
}
|
||||
deactivate() {
|
||||
this._active = false;
|
||||
}
|
||||
configured() {
|
||||
return this._configured;
|
||||
}
|
||||
}
|
||||
function makeSimpleConfigurator(cache) {
|
||||
function cacheFn(val) {
|
||||
if (typeof val === "boolean") {
|
||||
if (val) cache.forever();else cache.never();
|
||||
return;
|
||||
}
|
||||
return cache.using(() => assertSimpleType(val()));
|
||||
}
|
||||
cacheFn.forever = () => cache.forever();
|
||||
cacheFn.never = () => cache.never();
|
||||
cacheFn.using = cb => cache.using(() => assertSimpleType(cb()));
|
||||
cacheFn.invalidate = cb => cache.invalidate(() => assertSimpleType(cb()));
|
||||
return cacheFn;
|
||||
}
|
||||
function assertSimpleType(value) {
|
||||
if ((0, _async.isThenable)(value)) {
|
||||
throw new Error(`You appear to be using an async cache handler, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously handle your caching logic.`);
|
||||
}
|
||||
if (value != null && typeof value !== "string" && typeof value !== "boolean" && typeof value !== "number") {
|
||||
throw new Error("Cache keys must be either string, boolean, number, null, or undefined.");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
class Lock {
|
||||
constructor() {
|
||||
this.released = false;
|
||||
this.promise = void 0;
|
||||
this._resolve = void 0;
|
||||
this.promise = new Promise(resolve => {
|
||||
this._resolve = resolve;
|
||||
});
|
||||
}
|
||||
release(value) {
|
||||
this.released = true;
|
||||
this._resolve(value);
|
||||
}
|
||||
}
|
||||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=caching.js.map
|
1
packages/inula-intl/node_modules/@babel/core/lib/config/caching.js.map
generated
vendored
Normal file
1
packages/inula-intl/node_modules/@babel/core/lib/config/caching.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
469
packages/inula-intl/node_modules/@babel/core/lib/config/config-chain.js
generated
vendored
Normal file
469
packages/inula-intl/node_modules/@babel/core/lib/config/config-chain.js
generated
vendored
Normal file
|
@ -0,0 +1,469 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.buildPresetChain = buildPresetChain;
|
||||
exports.buildPresetChainWalker = void 0;
|
||||
exports.buildRootChain = buildRootChain;
|
||||
function _path() {
|
||||
const data = require("path");
|
||||
_path = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
function _debug() {
|
||||
const data = require("debug");
|
||||
_debug = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
var _options = require("./validation/options");
|
||||
var _patternToRegex = require("./pattern-to-regex");
|
||||
var _printer = require("./printer");
|
||||
var _rewriteStackTrace = require("../errors/rewrite-stack-trace");
|
||||
var _configError = require("../errors/config-error");
|
||||
var _files = require("./files");
|
||||
var _caching = require("./caching");
|
||||
var _configDescriptors = require("./config-descriptors");
|
||||
const debug = _debug()("babel:config:config-chain");
|
||||
function* buildPresetChain(arg, context) {
|
||||
const chain = yield* buildPresetChainWalker(arg, context);
|
||||
if (!chain) return null;
|
||||
return {
|
||||
plugins: dedupDescriptors(chain.plugins),
|
||||
presets: dedupDescriptors(chain.presets),
|
||||
options: chain.options.map(o => normalizeOptions(o)),
|
||||
files: new Set()
|
||||
};
|
||||
}
|
||||
const buildPresetChainWalker = makeChainWalker({
|
||||
root: preset => loadPresetDescriptors(preset),
|
||||
env: (preset, envName) => loadPresetEnvDescriptors(preset)(envName),
|
||||
overrides: (preset, index) => loadPresetOverridesDescriptors(preset)(index),
|
||||
overridesEnv: (preset, index, envName) => loadPresetOverridesEnvDescriptors(preset)(index)(envName),
|
||||
createLogger: () => () => {}
|
||||
});
|
||||
exports.buildPresetChainWalker = buildPresetChainWalker;
|
||||
const loadPresetDescriptors = (0, _caching.makeWeakCacheSync)(preset => buildRootDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors));
|
||||
const loadPresetEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, envName)));
|
||||
const loadPresetOverridesDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(index => buildOverrideDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, index)));
|
||||
const loadPresetOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(preset => (0, _caching.makeStrongCacheSync)(index => (0, _caching.makeStrongCacheSync)(envName => buildOverrideEnvDescriptors(preset, preset.alias, _configDescriptors.createUncachedDescriptors, index, envName))));
|
||||
function* buildRootChain(opts, context) {
|
||||
let configReport, babelRcReport;
|
||||
const programmaticLogger = new _printer.ConfigPrinter();
|
||||
const programmaticChain = yield* loadProgrammaticChain({
|
||||
options: opts,
|
||||
dirname: context.cwd
|
||||
}, context, undefined, programmaticLogger);
|
||||
if (!programmaticChain) return null;
|
||||
const programmaticReport = yield* programmaticLogger.output();
|
||||
let configFile;
|
||||
if (typeof opts.configFile === "string") {
|
||||
configFile = yield* (0, _files.loadConfig)(opts.configFile, context.cwd, context.envName, context.caller);
|
||||
} else if (opts.configFile !== false) {
|
||||
configFile = yield* (0, _files.findRootConfig)(context.root, context.envName, context.caller);
|
||||
}
|
||||
let {
|
||||
babelrc,
|
||||
babelrcRoots
|
||||
} = opts;
|
||||
let babelrcRootsDirectory = context.cwd;
|
||||
const configFileChain = emptyChain();
|
||||
const configFileLogger = new _printer.ConfigPrinter();
|
||||
if (configFile) {
|
||||
const validatedFile = validateConfigFile(configFile);
|
||||
const result = yield* loadFileChain(validatedFile, context, undefined, configFileLogger);
|
||||
if (!result) return null;
|
||||
configReport = yield* configFileLogger.output();
|
||||
if (babelrc === undefined) {
|
||||
babelrc = validatedFile.options.babelrc;
|
||||
}
|
||||
if (babelrcRoots === undefined) {
|
||||
babelrcRootsDirectory = validatedFile.dirname;
|
||||
babelrcRoots = validatedFile.options.babelrcRoots;
|
||||
}
|
||||
mergeChain(configFileChain, result);
|
||||
}
|
||||
let ignoreFile, babelrcFile;
|
||||
let isIgnored = false;
|
||||
const fileChain = emptyChain();
|
||||
if ((babelrc === true || babelrc === undefined) && typeof context.filename === "string") {
|
||||
const pkgData = yield* (0, _files.findPackageData)(context.filename);
|
||||
if (pkgData && babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory)) {
|
||||
({
|
||||
ignore: ignoreFile,
|
||||
config: babelrcFile
|
||||
} = yield* (0, _files.findRelativeConfig)(pkgData, context.envName, context.caller));
|
||||
if (ignoreFile) {
|
||||
fileChain.files.add(ignoreFile.filepath);
|
||||
}
|
||||
if (ignoreFile && shouldIgnore(context, ignoreFile.ignore, null, ignoreFile.dirname)) {
|
||||
isIgnored = true;
|
||||
}
|
||||
if (babelrcFile && !isIgnored) {
|
||||
const validatedFile = validateBabelrcFile(babelrcFile);
|
||||
const babelrcLogger = new _printer.ConfigPrinter();
|
||||
const result = yield* loadFileChain(validatedFile, context, undefined, babelrcLogger);
|
||||
if (!result) {
|
||||
isIgnored = true;
|
||||
} else {
|
||||
babelRcReport = yield* babelrcLogger.output();
|
||||
mergeChain(fileChain, result);
|
||||
}
|
||||
}
|
||||
if (babelrcFile && isIgnored) {
|
||||
fileChain.files.add(babelrcFile.filepath);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (context.showConfig) {
|
||||
console.log(`Babel configs on "${context.filename}" (ascending priority):\n` + [configReport, babelRcReport, programmaticReport].filter(x => !!x).join("\n\n") + "\n-----End Babel configs-----");
|
||||
}
|
||||
const chain = mergeChain(mergeChain(mergeChain(emptyChain(), configFileChain), fileChain), programmaticChain);
|
||||
return {
|
||||
plugins: isIgnored ? [] : dedupDescriptors(chain.plugins),
|
||||
presets: isIgnored ? [] : dedupDescriptors(chain.presets),
|
||||
options: isIgnored ? [] : chain.options.map(o => normalizeOptions(o)),
|
||||
fileHandling: isIgnored ? "ignored" : "transpile",
|
||||
ignore: ignoreFile || undefined,
|
||||
babelrc: babelrcFile || undefined,
|
||||
config: configFile || undefined,
|
||||
files: chain.files
|
||||
};
|
||||
}
|
||||
function babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory) {
|
||||
if (typeof babelrcRoots === "boolean") return babelrcRoots;
|
||||
const absoluteRoot = context.root;
|
||||
if (babelrcRoots === undefined) {
|
||||
return pkgData.directories.indexOf(absoluteRoot) !== -1;
|
||||
}
|
||||
let babelrcPatterns = babelrcRoots;
|
||||
if (!Array.isArray(babelrcPatterns)) {
|
||||
babelrcPatterns = [babelrcPatterns];
|
||||
}
|
||||
babelrcPatterns = babelrcPatterns.map(pat => {
|
||||
return typeof pat === "string" ? _path().resolve(babelrcRootsDirectory, pat) : pat;
|
||||
});
|
||||
if (babelrcPatterns.length === 1 && babelrcPatterns[0] === absoluteRoot) {
|
||||
return pkgData.directories.indexOf(absoluteRoot) !== -1;
|
||||
}
|
||||
return babelrcPatterns.some(pat => {
|
||||
if (typeof pat === "string") {
|
||||
pat = (0, _patternToRegex.default)(pat, babelrcRootsDirectory);
|
||||
}
|
||||
return pkgData.directories.some(directory => {
|
||||
return matchPattern(pat, babelrcRootsDirectory, directory, context);
|
||||
});
|
||||
});
|
||||
}
|
||||
const validateConfigFile = (0, _caching.makeWeakCacheSync)(file => ({
|
||||
filepath: file.filepath,
|
||||
dirname: file.dirname,
|
||||
options: (0, _options.validate)("configfile", file.options, file.filepath)
|
||||
}));
|
||||
const validateBabelrcFile = (0, _caching.makeWeakCacheSync)(file => ({
|
||||
filepath: file.filepath,
|
||||
dirname: file.dirname,
|
||||
options: (0, _options.validate)("babelrcfile", file.options, file.filepath)
|
||||
}));
|
||||
const validateExtendFile = (0, _caching.makeWeakCacheSync)(file => ({
|
||||
filepath: file.filepath,
|
||||
dirname: file.dirname,
|
||||
options: (0, _options.validate)("extendsfile", file.options, file.filepath)
|
||||
}));
|
||||
const loadProgrammaticChain = makeChainWalker({
|
||||
root: input => buildRootDescriptors(input, "base", _configDescriptors.createCachedDescriptors),
|
||||
env: (input, envName) => buildEnvDescriptors(input, "base", _configDescriptors.createCachedDescriptors, envName),
|
||||
overrides: (input, index) => buildOverrideDescriptors(input, "base", _configDescriptors.createCachedDescriptors, index),
|
||||
overridesEnv: (input, index, envName) => buildOverrideEnvDescriptors(input, "base", _configDescriptors.createCachedDescriptors, index, envName),
|
||||
createLogger: (input, context, baseLogger) => buildProgrammaticLogger(input, context, baseLogger)
|
||||
});
|
||||
const loadFileChainWalker = makeChainWalker({
|
||||
root: file => loadFileDescriptors(file),
|
||||
env: (file, envName) => loadFileEnvDescriptors(file)(envName),
|
||||
overrides: (file, index) => loadFileOverridesDescriptors(file)(index),
|
||||
overridesEnv: (file, index, envName) => loadFileOverridesEnvDescriptors(file)(index)(envName),
|
||||
createLogger: (file, context, baseLogger) => buildFileLogger(file.filepath, context, baseLogger)
|
||||
});
|
||||
function* loadFileChain(input, context, files, baseLogger) {
|
||||
const chain = yield* loadFileChainWalker(input, context, files, baseLogger);
|
||||
if (chain) {
|
||||
chain.files.add(input.filepath);
|
||||
}
|
||||
return chain;
|
||||
}
|
||||
const loadFileDescriptors = (0, _caching.makeWeakCacheSync)(file => buildRootDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors));
|
||||
const loadFileEnvDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(envName => buildEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, envName)));
|
||||
const loadFileOverridesDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(index => buildOverrideDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index)));
|
||||
const loadFileOverridesEnvDescriptors = (0, _caching.makeWeakCacheSync)(file => (0, _caching.makeStrongCacheSync)(index => (0, _caching.makeStrongCacheSync)(envName => buildOverrideEnvDescriptors(file, file.filepath, _configDescriptors.createUncachedDescriptors, index, envName))));
|
||||
function buildFileLogger(filepath, context, baseLogger) {
|
||||
if (!baseLogger) {
|
||||
return () => {};
|
||||
}
|
||||
return baseLogger.configure(context.showConfig, _printer.ChainFormatter.Config, {
|
||||
filepath
|
||||
});
|
||||
}
|
||||
function buildRootDescriptors({
|
||||
dirname,
|
||||
options
|
||||
}, alias, descriptors) {
|
||||
return descriptors(dirname, options, alias);
|
||||
}
|
||||
function buildProgrammaticLogger(_, context, baseLogger) {
|
||||
var _context$caller;
|
||||
if (!baseLogger) {
|
||||
return () => {};
|
||||
}
|
||||
return baseLogger.configure(context.showConfig, _printer.ChainFormatter.Programmatic, {
|
||||
callerName: (_context$caller = context.caller) == null ? void 0 : _context$caller.name
|
||||
});
|
||||
}
|
||||
function buildEnvDescriptors({
|
||||
dirname,
|
||||
options
|
||||
}, alias, descriptors, envName) {
|
||||
const opts = options.env && options.env[envName];
|
||||
return opts ? descriptors(dirname, opts, `${alias}.env["${envName}"]`) : null;
|
||||
}
|
||||
function buildOverrideDescriptors({
|
||||
dirname,
|
||||
options
|
||||
}, alias, descriptors, index) {
|
||||
const opts = options.overrides && options.overrides[index];
|
||||
if (!opts) throw new Error("Assertion failure - missing override");
|
||||
return descriptors(dirname, opts, `${alias}.overrides[${index}]`);
|
||||
}
|
||||
function buildOverrideEnvDescriptors({
|
||||
dirname,
|
||||
options
|
||||
}, alias, descriptors, index, envName) {
|
||||
const override = options.overrides && options.overrides[index];
|
||||
if (!override) throw new Error("Assertion failure - missing override");
|
||||
const opts = override.env && override.env[envName];
|
||||
return opts ? descriptors(dirname, opts, `${alias}.overrides[${index}].env["${envName}"]`) : null;
|
||||
}
|
||||
function makeChainWalker({
|
||||
root,
|
||||
env,
|
||||
overrides,
|
||||
overridesEnv,
|
||||
createLogger
|
||||
}) {
|
||||
return function* chainWalker(input, context, files = new Set(), baseLogger) {
|
||||
const {
|
||||
dirname
|
||||
} = input;
|
||||
const flattenedConfigs = [];
|
||||
const rootOpts = root(input);
|
||||
if (configIsApplicable(rootOpts, dirname, context, input.filepath)) {
|
||||
flattenedConfigs.push({
|
||||
config: rootOpts,
|
||||
envName: undefined,
|
||||
index: undefined
|
||||
});
|
||||
const envOpts = env(input, context.envName);
|
||||
if (envOpts && configIsApplicable(envOpts, dirname, context, input.filepath)) {
|
||||
flattenedConfigs.push({
|
||||
config: envOpts,
|
||||
envName: context.envName,
|
||||
index: undefined
|
||||
});
|
||||
}
|
||||
(rootOpts.options.overrides || []).forEach((_, index) => {
|
||||
const overrideOps = overrides(input, index);
|
||||
if (configIsApplicable(overrideOps, dirname, context, input.filepath)) {
|
||||
flattenedConfigs.push({
|
||||
config: overrideOps,
|
||||
index,
|
||||
envName: undefined
|
||||
});
|
||||
const overrideEnvOpts = overridesEnv(input, index, context.envName);
|
||||
if (overrideEnvOpts && configIsApplicable(overrideEnvOpts, dirname, context, input.filepath)) {
|
||||
flattenedConfigs.push({
|
||||
config: overrideEnvOpts,
|
||||
index,
|
||||
envName: context.envName
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
if (flattenedConfigs.some(({
|
||||
config: {
|
||||
options: {
|
||||
ignore,
|
||||
only
|
||||
}
|
||||
}
|
||||
}) => shouldIgnore(context, ignore, only, dirname))) {
|
||||
return null;
|
||||
}
|
||||
const chain = emptyChain();
|
||||
const logger = createLogger(input, context, baseLogger);
|
||||
for (const {
|
||||
config,
|
||||
index,
|
||||
envName
|
||||
} of flattenedConfigs) {
|
||||
if (!(yield* mergeExtendsChain(chain, config.options, dirname, context, files, baseLogger))) {
|
||||
return null;
|
||||
}
|
||||
logger(config, index, envName);
|
||||
yield* mergeChainOpts(chain, config);
|
||||
}
|
||||
return chain;
|
||||
};
|
||||
}
|
||||
function* mergeExtendsChain(chain, opts, dirname, context, files, baseLogger) {
|
||||
if (opts.extends === undefined) return true;
|
||||
const file = yield* (0, _files.loadConfig)(opts.extends, dirname, context.envName, context.caller);
|
||||
if (files.has(file)) {
|
||||
throw new Error(`Configuration cycle detected loading ${file.filepath}.\n` + `File already loaded following the config chain:\n` + Array.from(files, file => ` - ${file.filepath}`).join("\n"));
|
||||
}
|
||||
files.add(file);
|
||||
const fileChain = yield* loadFileChain(validateExtendFile(file), context, files, baseLogger);
|
||||
files.delete(file);
|
||||
if (!fileChain) return false;
|
||||
mergeChain(chain, fileChain);
|
||||
return true;
|
||||
}
|
||||
function mergeChain(target, source) {
|
||||
target.options.push(...source.options);
|
||||
target.plugins.push(...source.plugins);
|
||||
target.presets.push(...source.presets);
|
||||
for (const file of source.files) {
|
||||
target.files.add(file);
|
||||
}
|
||||
return target;
|
||||
}
|
||||
function* mergeChainOpts(target, {
|
||||
options,
|
||||
plugins,
|
||||
presets
|
||||
}) {
|
||||
target.options.push(options);
|
||||
target.plugins.push(...(yield* plugins()));
|
||||
target.presets.push(...(yield* presets()));
|
||||
return target;
|
||||
}
|
||||
function emptyChain() {
|
||||
return {
|
||||
options: [],
|
||||
presets: [],
|
||||
plugins: [],
|
||||
files: new Set()
|
||||
};
|
||||
}
|
||||
function normalizeOptions(opts) {
|
||||
const options = Object.assign({}, opts);
|
||||
delete options.extends;
|
||||
delete options.env;
|
||||
delete options.overrides;
|
||||
delete options.plugins;
|
||||
delete options.presets;
|
||||
delete options.passPerPreset;
|
||||
delete options.ignore;
|
||||
delete options.only;
|
||||
delete options.test;
|
||||
delete options.include;
|
||||
delete options.exclude;
|
||||
if (Object.prototype.hasOwnProperty.call(options, "sourceMap")) {
|
||||
options.sourceMaps = options.sourceMap;
|
||||
delete options.sourceMap;
|
||||
}
|
||||
return options;
|
||||
}
|
||||
function dedupDescriptors(items) {
|
||||
const map = new Map();
|
||||
const descriptors = [];
|
||||
for (const item of items) {
|
||||
if (typeof item.value === "function") {
|
||||
const fnKey = item.value;
|
||||
let nameMap = map.get(fnKey);
|
||||
if (!nameMap) {
|
||||
nameMap = new Map();
|
||||
map.set(fnKey, nameMap);
|
||||
}
|
||||
let desc = nameMap.get(item.name);
|
||||
if (!desc) {
|
||||
desc = {
|
||||
value: item
|
||||
};
|
||||
descriptors.push(desc);
|
||||
if (!item.ownPass) nameMap.set(item.name, desc);
|
||||
} else {
|
||||
desc.value = item;
|
||||
}
|
||||
} else {
|
||||
descriptors.push({
|
||||
value: item
|
||||
});
|
||||
}
|
||||
}
|
||||
return descriptors.reduce((acc, desc) => {
|
||||
acc.push(desc.value);
|
||||
return acc;
|
||||
}, []);
|
||||
}
|
||||
function configIsApplicable({
|
||||
options
|
||||
}, dirname, context, configName) {
|
||||
return (options.test === undefined || configFieldIsApplicable(context, options.test, dirname, configName)) && (options.include === undefined || configFieldIsApplicable(context, options.include, dirname, configName)) && (options.exclude === undefined || !configFieldIsApplicable(context, options.exclude, dirname, configName));
|
||||
}
|
||||
function configFieldIsApplicable(context, test, dirname, configName) {
|
||||
const patterns = Array.isArray(test) ? test : [test];
|
||||
return matchesPatterns(context, patterns, dirname, configName);
|
||||
}
|
||||
function ignoreListReplacer(_key, value) {
|
||||
if (value instanceof RegExp) {
|
||||
return String(value);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
function shouldIgnore(context, ignore, only, dirname) {
|
||||
if (ignore && matchesPatterns(context, ignore, dirname)) {
|
||||
var _context$filename;
|
||||
const message = `No config is applied to "${(_context$filename = context.filename) != null ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname}"`;
|
||||
debug(message);
|
||||
if (context.showConfig) {
|
||||
console.log(message);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (only && !matchesPatterns(context, only, dirname)) {
|
||||
var _context$filename2;
|
||||
const message = `No config is applied to "${(_context$filename2 = context.filename) != null ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname}"`;
|
||||
debug(message);
|
||||
if (context.showConfig) {
|
||||
console.log(message);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function matchesPatterns(context, patterns, dirname, configName) {
|
||||
return patterns.some(pattern => matchPattern(pattern, dirname, context.filename, context, configName));
|
||||
}
|
||||
function matchPattern(pattern, dirname, pathToTest, context, configName) {
|
||||
if (typeof pattern === "function") {
|
||||
return !!(0, _rewriteStackTrace.endHiddenCallStack)(pattern)(pathToTest, {
|
||||
dirname,
|
||||
envName: context.envName,
|
||||
caller: context.caller
|
||||
});
|
||||
}
|
||||
if (typeof pathToTest !== "string") {
|
||||
throw new _configError.default(`Configuration contains string/RegExp pattern, but no filename was passed to Babel`, configName);
|
||||
}
|
||||
if (typeof pattern === "string") {
|
||||
pattern = (0, _patternToRegex.default)(pattern, dirname);
|
||||
}
|
||||
return pattern.test(pathToTest);
|
||||
}
|
||||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=config-chain.js.map
|
1
packages/inula-intl/node_modules/@babel/core/lib/config/config-chain.js.map
generated
vendored
Normal file
1
packages/inula-intl/node_modules/@babel/core/lib/config/config-chain.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
189
packages/inula-intl/node_modules/@babel/core/lib/config/config-descriptors.js
generated
vendored
Normal file
189
packages/inula-intl/node_modules/@babel/core/lib/config/config-descriptors.js
generated
vendored
Normal file
|
@ -0,0 +1,189 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.createCachedDescriptors = createCachedDescriptors;
|
||||
exports.createDescriptor = createDescriptor;
|
||||
exports.createUncachedDescriptors = createUncachedDescriptors;
|
||||
function _gensync() {
|
||||
const data = require("gensync");
|
||||
_gensync = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
var _functional = require("../gensync-utils/functional");
|
||||
var _files = require("./files");
|
||||
var _item = require("./item");
|
||||
var _caching = require("./caching");
|
||||
var _resolveTargets = require("./resolve-targets");
|
||||
function isEqualDescriptor(a, b) {
|
||||
return a.name === b.name && a.value === b.value && a.options === b.options && a.dirname === b.dirname && a.alias === b.alias && a.ownPass === b.ownPass && (a.file && a.file.request) === (b.file && b.file.request) && (a.file && a.file.resolved) === (b.file && b.file.resolved);
|
||||
}
|
||||
function* handlerOf(value) {
|
||||
return value;
|
||||
}
|
||||
function optionsWithResolvedBrowserslistConfigFile(options, dirname) {
|
||||
if (typeof options.browserslistConfigFile === "string") {
|
||||
options.browserslistConfigFile = (0, _resolveTargets.resolveBrowserslistConfigFile)(options.browserslistConfigFile, dirname);
|
||||
}
|
||||
return options;
|
||||
}
|
||||
function createCachedDescriptors(dirname, options, alias) {
|
||||
const {
|
||||
plugins,
|
||||
presets,
|
||||
passPerPreset
|
||||
} = options;
|
||||
return {
|
||||
options: optionsWithResolvedBrowserslistConfigFile(options, dirname),
|
||||
plugins: plugins ? () => createCachedPluginDescriptors(plugins, dirname)(alias) : () => handlerOf([]),
|
||||
presets: presets ? () => createCachedPresetDescriptors(presets, dirname)(alias)(!!passPerPreset) : () => handlerOf([])
|
||||
};
|
||||
}
|
||||
function createUncachedDescriptors(dirname, options, alias) {
|
||||
return {
|
||||
options: optionsWithResolvedBrowserslistConfigFile(options, dirname),
|
||||
plugins: (0, _functional.once)(() => createPluginDescriptors(options.plugins || [], dirname, alias)),
|
||||
presets: (0, _functional.once)(() => createPresetDescriptors(options.presets || [], dirname, alias, !!options.passPerPreset))
|
||||
};
|
||||
}
|
||||
const PRESET_DESCRIPTOR_CACHE = new WeakMap();
|
||||
const createCachedPresetDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => {
|
||||
const dirname = cache.using(dir => dir);
|
||||
return (0, _caching.makeStrongCacheSync)(alias => (0, _caching.makeStrongCache)(function* (passPerPreset) {
|
||||
const descriptors = yield* createPresetDescriptors(items, dirname, alias, passPerPreset);
|
||||
return descriptors.map(desc => loadCachedDescriptor(PRESET_DESCRIPTOR_CACHE, desc));
|
||||
}));
|
||||
});
|
||||
const PLUGIN_DESCRIPTOR_CACHE = new WeakMap();
|
||||
const createCachedPluginDescriptors = (0, _caching.makeWeakCacheSync)((items, cache) => {
|
||||
const dirname = cache.using(dir => dir);
|
||||
return (0, _caching.makeStrongCache)(function* (alias) {
|
||||
const descriptors = yield* createPluginDescriptors(items, dirname, alias);
|
||||
return descriptors.map(desc => loadCachedDescriptor(PLUGIN_DESCRIPTOR_CACHE, desc));
|
||||
});
|
||||
});
|
||||
const DEFAULT_OPTIONS = {};
|
||||
function loadCachedDescriptor(cache, desc) {
|
||||
const {
|
||||
value,
|
||||
options = DEFAULT_OPTIONS
|
||||
} = desc;
|
||||
if (options === false) return desc;
|
||||
let cacheByOptions = cache.get(value);
|
||||
if (!cacheByOptions) {
|
||||
cacheByOptions = new WeakMap();
|
||||
cache.set(value, cacheByOptions);
|
||||
}
|
||||
let possibilities = cacheByOptions.get(options);
|
||||
if (!possibilities) {
|
||||
possibilities = [];
|
||||
cacheByOptions.set(options, possibilities);
|
||||
}
|
||||
if (possibilities.indexOf(desc) === -1) {
|
||||
const matches = possibilities.filter(possibility => isEqualDescriptor(possibility, desc));
|
||||
if (matches.length > 0) {
|
||||
return matches[0];
|
||||
}
|
||||
possibilities.push(desc);
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
function* createPresetDescriptors(items, dirname, alias, passPerPreset) {
|
||||
return yield* createDescriptors("preset", items, dirname, alias, passPerPreset);
|
||||
}
|
||||
function* createPluginDescriptors(items, dirname, alias) {
|
||||
return yield* createDescriptors("plugin", items, dirname, alias);
|
||||
}
|
||||
function* createDescriptors(type, items, dirname, alias, ownPass) {
|
||||
const descriptors = yield* _gensync().all(items.map((item, index) => createDescriptor(item, dirname, {
|
||||
type,
|
||||
alias: `${alias}$${index}`,
|
||||
ownPass: !!ownPass
|
||||
})));
|
||||
assertNoDuplicates(descriptors);
|
||||
return descriptors;
|
||||
}
|
||||
function* createDescriptor(pair, dirname, {
|
||||
type,
|
||||
alias,
|
||||
ownPass
|
||||
}) {
|
||||
const desc = (0, _item.getItemDescriptor)(pair);
|
||||
if (desc) {
|
||||
return desc;
|
||||
}
|
||||
let name;
|
||||
let options;
|
||||
let value = pair;
|
||||
if (Array.isArray(value)) {
|
||||
if (value.length === 3) {
|
||||
[value, options, name] = value;
|
||||
} else {
|
||||
[value, options] = value;
|
||||
}
|
||||
}
|
||||
let file = undefined;
|
||||
let filepath = null;
|
||||
if (typeof value === "string") {
|
||||
if (typeof type !== "string") {
|
||||
throw new Error("To resolve a string-based item, the type of item must be given");
|
||||
}
|
||||
const resolver = type === "plugin" ? _files.loadPlugin : _files.loadPreset;
|
||||
const request = value;
|
||||
({
|
||||
filepath,
|
||||
value
|
||||
} = yield* resolver(value, dirname));
|
||||
file = {
|
||||
request,
|
||||
resolved: filepath
|
||||
};
|
||||
}
|
||||
if (!value) {
|
||||
throw new Error(`Unexpected falsy value: ${String(value)}`);
|
||||
}
|
||||
if (typeof value === "object" && value.__esModule) {
|
||||
if (value.default) {
|
||||
value = value.default;
|
||||
} else {
|
||||
throw new Error("Must export a default export when using ES6 modules.");
|
||||
}
|
||||
}
|
||||
if (typeof value !== "object" && typeof value !== "function") {
|
||||
throw new Error(`Unsupported format: ${typeof value}. Expected an object or a function.`);
|
||||
}
|
||||
if (filepath !== null && typeof value === "object" && value) {
|
||||
throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`);
|
||||
}
|
||||
return {
|
||||
name,
|
||||
alias: filepath || alias,
|
||||
value,
|
||||
options,
|
||||
dirname,
|
||||
ownPass,
|
||||
file
|
||||
};
|
||||
}
|
||||
function assertNoDuplicates(items) {
|
||||
const map = new Map();
|
||||
for (const item of items) {
|
||||
if (typeof item.value !== "function") continue;
|
||||
let nameMap = map.get(item.value);
|
||||
if (!nameMap) {
|
||||
nameMap = new Set();
|
||||
map.set(item.value, nameMap);
|
||||
}
|
||||
if (nameMap.has(item.name)) {
|
||||
const conflicts = items.filter(i => i.value === item.value);
|
||||
throw new Error([`Duplicate plugin/preset detected.`, `If you'd like to use two separate instances of a plugin,`, `they need separate names, e.g.`, ``, ` plugins: [`, ` ['some-plugin', {}],`, ` ['some-plugin', {}, 'some unique name'],`, ` ]`, ``, `Duplicates detected are:`, `${JSON.stringify(conflicts, null, 2)}`].join("\n"));
|
||||
}
|
||||
nameMap.add(item.name);
|
||||
}
|
||||
}
|
||||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=config-descriptors.js.map
|
1
packages/inula-intl/node_modules/@babel/core/lib/config/config-descriptors.js.map
generated
vendored
Normal file
1
packages/inula-intl/node_modules/@babel/core/lib/config/config-descriptors.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
284
packages/inula-intl/node_modules/@babel/core/lib/config/files/configuration.js
generated
vendored
Normal file
284
packages/inula-intl/node_modules/@babel/core/lib/config/files/configuration.js
generated
vendored
Normal file
|
@ -0,0 +1,284 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.ROOT_CONFIG_FILENAMES = void 0;
|
||||
exports.findConfigUpwards = findConfigUpwards;
|
||||
exports.findRelativeConfig = findRelativeConfig;
|
||||
exports.findRootConfig = findRootConfig;
|
||||
exports.loadConfig = loadConfig;
|
||||
exports.resolveShowConfigPath = resolveShowConfigPath;
|
||||
function _debug() {
|
||||
const data = require("debug");
|
||||
_debug = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
function _fs() {
|
||||
const data = require("fs");
|
||||
_fs = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
function _path() {
|
||||
const data = require("path");
|
||||
_path = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
function _json() {
|
||||
const data = require("json5");
|
||||
_json = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
function _gensync() {
|
||||
const data = require("gensync");
|
||||
_gensync = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
var _caching = require("../caching");
|
||||
var _configApi = require("../helpers/config-api");
|
||||
var _utils = require("./utils");
|
||||
var _moduleTypes = require("./module-types");
|
||||
var _patternToRegex = require("../pattern-to-regex");
|
||||
var _configError = require("../../errors/config-error");
|
||||
var fs = require("../../gensync-utils/fs");
|
||||
var _rewriteStackTrace = require("../../errors/rewrite-stack-trace");
|
||||
const debug = _debug()("babel:config:loading:files:configuration");
|
||||
const ROOT_CONFIG_FILENAMES = ["babel.config.js", "babel.config.cjs", "babel.config.mjs", "babel.config.json", "babel.config.cts"];
|
||||
exports.ROOT_CONFIG_FILENAMES = ROOT_CONFIG_FILENAMES;
|
||||
const RELATIVE_CONFIG_FILENAMES = [".babelrc", ".babelrc.js", ".babelrc.cjs", ".babelrc.mjs", ".babelrc.json", ".babelrc.cts"];
|
||||
const BABELIGNORE_FILENAME = ".babelignore";
|
||||
const LOADING_CONFIGS = new Set();
|
||||
const readConfigCode = (0, _caching.makeStrongCache)(function* readConfigCode(filepath, cache) {
|
||||
if (!_fs().existsSync(filepath)) {
|
||||
cache.never();
|
||||
return null;
|
||||
}
|
||||
if (LOADING_CONFIGS.has(filepath)) {
|
||||
cache.never();
|
||||
debug("Auto-ignoring usage of config %o.", filepath);
|
||||
return {
|
||||
filepath,
|
||||
dirname: _path().dirname(filepath),
|
||||
options: {}
|
||||
};
|
||||
}
|
||||
let options;
|
||||
try {
|
||||
LOADING_CONFIGS.add(filepath);
|
||||
options = yield* (0, _moduleTypes.default)(filepath, "You appear to be using a native ECMAScript module configuration " + "file, which is only supported when running Babel asynchronously.");
|
||||
} finally {
|
||||
LOADING_CONFIGS.delete(filepath);
|
||||
}
|
||||
let assertCache = false;
|
||||
if (typeof options === "function") {
|
||||
yield* [];
|
||||
options = (0, _rewriteStackTrace.endHiddenCallStack)(options)((0, _configApi.makeConfigAPI)(cache));
|
||||
assertCache = true;
|
||||
}
|
||||
if (!options || typeof options !== "object" || Array.isArray(options)) {
|
||||
throw new _configError.default(`Configuration should be an exported JavaScript object.`, filepath);
|
||||
}
|
||||
if (typeof options.then === "function") {
|
||||
throw new _configError.default(`You appear to be using an async configuration, ` + `which your current version of Babel does not support. ` + `We may add support for this in the future, ` + `but if you're on the most recent version of @babel/core and still ` + `seeing this error, then you'll need to synchronously return your config.`, filepath);
|
||||
}
|
||||
if (assertCache && !cache.configured()) throwConfigError(filepath);
|
||||
return {
|
||||
filepath,
|
||||
dirname: _path().dirname(filepath),
|
||||
options
|
||||
};
|
||||
});
|
||||
const packageToBabelConfig = (0, _caching.makeWeakCacheSync)(file => {
|
||||
const babel = file.options["babel"];
|
||||
if (typeof babel === "undefined") return null;
|
||||
if (typeof babel !== "object" || Array.isArray(babel) || babel === null) {
|
||||
throw new _configError.default(`.babel property must be an object`, file.filepath);
|
||||
}
|
||||
return {
|
||||
filepath: file.filepath,
|
||||
dirname: file.dirname,
|
||||
options: babel
|
||||
};
|
||||
});
|
||||
const readConfigJSON5 = (0, _utils.makeStaticFileCache)((filepath, content) => {
|
||||
let options;
|
||||
try {
|
||||
options = _json().parse(content);
|
||||
} catch (err) {
|
||||
throw new _configError.default(`Error while parsing config - ${err.message}`, filepath);
|
||||
}
|
||||
if (!options) throw new _configError.default(`No config detected`, filepath);
|
||||
if (typeof options !== "object") {
|
||||
throw new _configError.default(`Config returned typeof ${typeof options}`, filepath);
|
||||
}
|
||||
if (Array.isArray(options)) {
|
||||
throw new _configError.default(`Expected config object but found array`, filepath);
|
||||
}
|
||||
delete options["$schema"];
|
||||
return {
|
||||
filepath,
|
||||
dirname: _path().dirname(filepath),
|
||||
options
|
||||
};
|
||||
});
|
||||
const readIgnoreConfig = (0, _utils.makeStaticFileCache)((filepath, content) => {
|
||||
const ignoreDir = _path().dirname(filepath);
|
||||
const ignorePatterns = content.split("\n").map(line => line.replace(/#(.*?)$/, "").trim()).filter(line => !!line);
|
||||
for (const pattern of ignorePatterns) {
|
||||
if (pattern[0] === "!") {
|
||||
throw new _configError.default(`Negation of file paths is not supported.`, filepath);
|
||||
}
|
||||
}
|
||||
return {
|
||||
filepath,
|
||||
dirname: _path().dirname(filepath),
|
||||
ignore: ignorePatterns.map(pattern => (0, _patternToRegex.default)(pattern, ignoreDir))
|
||||
};
|
||||
});
|
||||
function findConfigUpwards(rootDir) {
|
||||
let dirname = rootDir;
|
||||
for (;;) {
|
||||
for (const filename of ROOT_CONFIG_FILENAMES) {
|
||||
if (_fs().existsSync(_path().join(dirname, filename))) {
|
||||
return dirname;
|
||||
}
|
||||
}
|
||||
const nextDir = _path().dirname(dirname);
|
||||
if (dirname === nextDir) break;
|
||||
dirname = nextDir;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function* findRelativeConfig(packageData, envName, caller) {
|
||||
let config = null;
|
||||
let ignore = null;
|
||||
const dirname = _path().dirname(packageData.filepath);
|
||||
for (const loc of packageData.directories) {
|
||||
if (!config) {
|
||||
var _packageData$pkg;
|
||||
config = yield* loadOneConfig(RELATIVE_CONFIG_FILENAMES, loc, envName, caller, ((_packageData$pkg = packageData.pkg) == null ? void 0 : _packageData$pkg.dirname) === loc ? packageToBabelConfig(packageData.pkg) : null);
|
||||
}
|
||||
if (!ignore) {
|
||||
const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
|
||||
ignore = yield* readIgnoreConfig(ignoreLoc);
|
||||
if (ignore) {
|
||||
debug("Found ignore %o from %o.", ignore.filepath, dirname);
|
||||
}
|
||||
}
|
||||
}
|
||||
return {
|
||||
config,
|
||||
ignore
|
||||
};
|
||||
}
|
||||
function findRootConfig(dirname, envName, caller) {
|
||||
return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname, envName, caller);
|
||||
}
|
||||
function* loadOneConfig(names, dirname, envName, caller, previousConfig = null) {
|
||||
const configs = yield* _gensync().all(names.map(filename => readConfig(_path().join(dirname, filename), envName, caller)));
|
||||
const config = configs.reduce((previousConfig, config) => {
|
||||
if (config && previousConfig) {
|
||||
throw new _configError.default(`Multiple configuration files found. Please remove one:\n` + ` - ${_path().basename(previousConfig.filepath)}\n` + ` - ${config.filepath}\n` + `from ${dirname}`);
|
||||
}
|
||||
return config || previousConfig;
|
||||
}, previousConfig);
|
||||
if (config) {
|
||||
debug("Found configuration %o from %o.", config.filepath, dirname);
|
||||
}
|
||||
return config;
|
||||
}
|
||||
function* loadConfig(name, dirname, envName, caller) {
|
||||
const filepath = (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, {
|
||||
paths: [b]
|
||||
}, M = require("module")) => {
|
||||
let f = M._findPath(r, M._nodeModulePaths(b).concat(b));
|
||||
if (f) return f;
|
||||
f = new Error(`Cannot resolve module '${r}'`);
|
||||
f.code = "MODULE_NOT_FOUND";
|
||||
throw f;
|
||||
})(name, {
|
||||
paths: [dirname]
|
||||
});
|
||||
const conf = yield* readConfig(filepath, envName, caller);
|
||||
if (!conf) {
|
||||
throw new _configError.default(`Config file contains no configuration data`, filepath);
|
||||
}
|
||||
debug("Loaded config %o from %o.", name, dirname);
|
||||
return conf;
|
||||
}
|
||||
function readConfig(filepath, envName, caller) {
|
||||
const ext = _path().extname(filepath);
|
||||
switch (ext) {
|
||||
case ".js":
|
||||
case ".cjs":
|
||||
case ".mjs":
|
||||
case ".cts":
|
||||
return readConfigCode(filepath, {
|
||||
envName,
|
||||
caller
|
||||
});
|
||||
default:
|
||||
return readConfigJSON5(filepath);
|
||||
}
|
||||
}
|
||||
function* resolveShowConfigPath(dirname) {
|
||||
const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;
|
||||
if (targetPath != null) {
|
||||
const absolutePath = _path().resolve(dirname, targetPath);
|
||||
const stats = yield* fs.stat(absolutePath);
|
||||
if (!stats.isFile()) {
|
||||
throw new Error(`${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);
|
||||
}
|
||||
return absolutePath;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function throwConfigError(filepath) {
|
||||
throw new _configError.default(`\
|
||||
Caching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured
|
||||
for various types of caching, using the first param of their handler functions:
|
||||
|
||||
module.exports = function(api) {
|
||||
// The API exposes the following:
|
||||
|
||||
// Cache the returned value forever and don't call this function again.
|
||||
api.cache(true);
|
||||
|
||||
// Don't cache at all. Not recommended because it will be very slow.
|
||||
api.cache(false);
|
||||
|
||||
// Cached based on the value of some function. If this function returns a value different from
|
||||
// a previously-encountered value, the plugins will re-evaluate.
|
||||
var env = api.cache(() => process.env.NODE_ENV);
|
||||
|
||||
// If testing for a specific env, we recommend specifics to avoid instantiating a plugin for
|
||||
// any possible NODE_ENV value that might come up during plugin execution.
|
||||
var isProd = api.cache(() => process.env.NODE_ENV === "production");
|
||||
|
||||
// .cache(fn) will perform a linear search though instances to find the matching plugin based
|
||||
// based on previous instantiated plugins. If you want to recreate the plugin and discard the
|
||||
// previous instance whenever something changes, you may use:
|
||||
var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production");
|
||||
|
||||
// Note, we also expose the following more-verbose versions of the above examples:
|
||||
api.cache.forever(); // api.cache(true)
|
||||
api.cache.never(); // api.cache(false)
|
||||
api.cache.using(fn); // api.cache(fn)
|
||||
|
||||
// Return the value that will be cached.
|
||||
return { };
|
||||
};`, filepath);
|
||||
}
|
||||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=configuration.js.map
|
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/configuration.js.map
generated
vendored
Normal file
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/configuration.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
26
packages/inula-intl/node_modules/@babel/core/lib/config/files/import-meta-resolve.js
generated
vendored
Normal file
26
packages/inula-intl/node_modules/@babel/core/lib/config/files/import-meta-resolve.js
generated
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = resolve;
|
||||
var _importMetaResolve = require("../../vendor/import-meta-resolve");
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
||||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
||||
let import_;
|
||||
try {
|
||||
import_ = require("./import.cjs");
|
||||
} catch (_unused) {}
|
||||
const importMetaResolveP = import_ && process.execArgv.includes("--experimental-import-meta-resolve") ? import_("data:text/javascript,export default import.meta.resolve").then(m => m.default || _importMetaResolve.resolve, () => _importMetaResolve.resolve) : Promise.resolve(_importMetaResolve.resolve);
|
||||
function resolve(_x, _x2) {
|
||||
return _resolve.apply(this, arguments);
|
||||
}
|
||||
function _resolve() {
|
||||
_resolve = _asyncToGenerator(function* (specifier, parent) {
|
||||
return (yield importMetaResolveP)(specifier, parent);
|
||||
});
|
||||
return _resolve.apply(this, arguments);
|
||||
}
|
||||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=import-meta-resolve.js.map
|
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/import-meta-resolve.js.map
generated
vendored
Normal file
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/import-meta-resolve.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"names":["_importMetaResolve","require","asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","value","error","done","Promise","then","_asyncToGenerator","fn","self","args","arguments","apply","err","undefined","import_","_unused","importMetaResolveP","process","execArgv","includes","m","default","polyfill","_x","_x2","_resolve","specifier","parent"],"sources":["../../../src/config/files/import-meta-resolve.ts"],"sourcesContent":["import { createRequire } from \"module\";\nimport { resolve as polyfill } from \"../../vendor/import-meta-resolve\";\n\nconst require = createRequire(import.meta.url);\n\nlet import_;\ntry {\n // Node < 13.3 doesn't support import() syntax.\n import_ = require(\"./import.cjs\");\n} catch {}\n\n// import.meta.resolve is only available in ESM, but this file is compiled to CJS.\n// We can extract it using dynamic import.\nconst importMetaResolveP: Promise<ImportMeta[\"resolve\"]> =\n import_ &&\n // Due to a Node.js/V8 bug (https://github.com/nodejs/node/issues/35889), we cannot\n // use always dynamic import because it segfaults when running in a Node.js `vm` context,\n // which is used by the default Jest environment and by webpack-cli.\n //\n // However, import.meta.resolve is experimental and only enabled when Node.js is run\n // with the `--experimental-import-meta-resolve` flag: we can avoid calling import()\n // when that flag is not enabled, so that the default behavior never segfaults.\n //\n // Hopefully, before Node.js unflags import.meta.resolve, either:\n // - we will move to ESM, so that we have direct access to import.meta.resolve, or\n // - the V8 bug will be fixed so that we can safely use dynamic import by default.\n //\n // I (@nicolo-ribaudo) am really annoyed by this bug, because there is no known\n // work-around other than \"don't use dynamic import if you are running in a `vm` context\",\n // but there is no reliable way to detect it (you cannot try/catch segfaults).\n //\n // This is the only place where we *need* to use dynamic import because we need to access\n // an ES module. All the other places will first try using require() and *then*, if\n // it throws because it's a module, will fallback to import().\n process.execArgv.includes(\"--experimental-import-meta-resolve\")\n ? import_(\"data:text/javascript,export default import.meta.resolve\").then(\n (m: { default: ImportMeta[\"resolve\"] | undefined }) =>\n m.default || polyfill,\n () => polyfill,\n )\n : Promise.resolve(polyfill);\n\nexport default async function resolve(\n specifier: Parameters<ImportMeta[\"resolve\"]>[0],\n parent?: Parameters<ImportMeta[\"resolve\"]>[1],\n): ReturnType<ImportMeta[\"resolve\"]> {\n return (await importMetaResolveP)(specifier, parent);\n}\n"],"mappings":";;;;;;AACA,IAAAA,kBAAA,GAAAC,OAAA;AAAuE,SAAAC,mBAAAC,GAAA,EAAAC,OAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,MAAA,EAAAC,GAAA,EAAAC,GAAA,cAAAC,IAAA,GAAAP,GAAA,CAAAK,GAAA,EAAAC,GAAA,OAAAE,KAAA,GAAAD,IAAA,CAAAC,KAAA,WAAAC,KAAA,IAAAP,MAAA,CAAAO,KAAA,iBAAAF,IAAA,CAAAG,IAAA,IAAAT,OAAA,CAAAO,KAAA,YAAAG,OAAA,CAAAV,OAAA,CAAAO,KAAA,EAAAI,IAAA,CAAAT,KAAA,EAAAC,MAAA;AAAA,SAAAS,kBAAAC,EAAA,6BAAAC,IAAA,SAAAC,IAAA,GAAAC,SAAA,aAAAN,OAAA,WAAAV,OAAA,EAAAC,MAAA,QAAAF,GAAA,GAAAc,EAAA,CAAAI,KAAA,CAAAH,IAAA,EAAAC,IAAA,YAAAb,MAAAK,KAAA,IAAAT,kBAAA,CAAAC,GAAA,EAAAC,OAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,MAAA,UAAAI,KAAA,cAAAJ,OAAAe,GAAA,IAAApB,kBAAA,CAAAC,GAAA,EAAAC,OAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,MAAA,WAAAe,GAAA,KAAAhB,KAAA,CAAAiB,SAAA;AAIvE,IAAIC,OAAO;AACX,IAAI;EAEFA,OAAO,GAAGvB,OAAO,CAAC,cAAc,CAAC;AACnC,CAAC,CAAC,OAAAwB,OAAA,EAAM,CAAC;AAIT,MAAMC,kBAAkD,GACtDF,OAAO,IAoBPG,OAAO,CAACC,QAAQ,CAACC,QAAQ,CAAC,oCAAoC,CAAC,GAC3DL,OAAO,CAAC,yDAAyD,CAAC,CAACT,IAAI,CACpEe,CAAiD,IAChDA,CAAC,CAACC,OAAO,IAAIC,0BAAQ,EACvB,MAAMA,0BAAQ,CACf,GACDlB,OAAO,CAACV,OAAO,CAAC4B,0BAAQ,CAAC;AAAC,SAEF5B,OAAOA,CAAA6B,EAAA,EAAAC,GAAA;EAAA,OAAAC,QAAA,CAAAd,KAAA,OAAAD,SAAA;AAAA;AAAA,SAAAe,SAAA;EAAAA,QAAA,GAAAnB,iBAAA,CAAtB,WACboB,SAA+C,EAC/CC,MAA6C,EACV;IACnC,OAAO,OAAOX,kBAAkB,EAAEU,SAAS,EAAEC,MAAM,CAAC;EACtD,CAAC;EAAA,OAAAF,QAAA,CAAAd,KAAA,OAAAD,SAAA;AAAA;AAAA"}
|
6
packages/inula-intl/node_modules/@babel/core/lib/config/files/import.cjs
generated
vendored
Normal file
6
packages/inula-intl/node_modules/@babel/core/lib/config/files/import.cjs
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
module.exports = function import_(filepath) {
|
||||
return import(filepath);
|
||||
};
|
||||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=import.cjs.map
|
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/import.cjs.map
generated
vendored
Normal file
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/import.cjs.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"names":["module","exports","import_","filepath"],"sources":["../../../src/config/files/import.cjs"],"sourcesContent":["// We keep this in a separate file so that in older node versions, where\n// import() isn't supported, we can try/catch around the require() call\n// when loading this file.\n\nmodule.exports = function import_(filepath) {\n return import(filepath);\n};\n"],"mappings":"AAIAA,MAAM,CAACC,OAAO,GAAG,SAASC,OAAOA,CAACC,QAAQ,EAAE;EAC1C,OAAO,MAAM,CAACA,QAAQ,CAAC;AACzB,CAAC;AAAC"}
|
59
packages/inula-intl/node_modules/@babel/core/lib/config/files/index-browser.js
generated
vendored
Normal file
59
packages/inula-intl/node_modules/@babel/core/lib/config/files/index-browser.js
generated
vendored
Normal file
|
@ -0,0 +1,59 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.ROOT_CONFIG_FILENAMES = void 0;
|
||||
exports.findConfigUpwards = findConfigUpwards;
|
||||
exports.findPackageData = findPackageData;
|
||||
exports.findRelativeConfig = findRelativeConfig;
|
||||
exports.findRootConfig = findRootConfig;
|
||||
exports.loadConfig = loadConfig;
|
||||
exports.loadPlugin = loadPlugin;
|
||||
exports.loadPreset = loadPreset;
|
||||
exports.resolvePlugin = resolvePlugin;
|
||||
exports.resolvePreset = resolvePreset;
|
||||
exports.resolveShowConfigPath = resolveShowConfigPath;
|
||||
function findConfigUpwards(rootDir) {
|
||||
return null;
|
||||
}
|
||||
function* findPackageData(filepath) {
|
||||
return {
|
||||
filepath,
|
||||
directories: [],
|
||||
pkg: null,
|
||||
isPackage: false
|
||||
};
|
||||
}
|
||||
function* findRelativeConfig(pkgData, envName, caller) {
|
||||
return {
|
||||
config: null,
|
||||
ignore: null
|
||||
};
|
||||
}
|
||||
function* findRootConfig(dirname, envName, caller) {
|
||||
return null;
|
||||
}
|
||||
function* loadConfig(name, dirname, envName, caller) {
|
||||
throw new Error(`Cannot load ${name} relative to ${dirname} in a browser`);
|
||||
}
|
||||
function* resolveShowConfigPath(dirname) {
|
||||
return null;
|
||||
}
|
||||
const ROOT_CONFIG_FILENAMES = [];
|
||||
exports.ROOT_CONFIG_FILENAMES = ROOT_CONFIG_FILENAMES;
|
||||
function resolvePlugin(name, dirname) {
|
||||
return null;
|
||||
}
|
||||
function resolvePreset(name, dirname) {
|
||||
return null;
|
||||
}
|
||||
function loadPlugin(name, dirname) {
|
||||
throw new Error(`Cannot load plugin ${name} relative to ${dirname} in a browser`);
|
||||
}
|
||||
function loadPreset(name, dirname) {
|
||||
throw new Error(`Cannot load preset ${name} relative to ${dirname} in a browser`);
|
||||
}
|
||||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=index-browser.js.map
|
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/index-browser.js.map
generated
vendored
Normal file
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/index-browser.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"names":["findConfigUpwards","rootDir","findPackageData","filepath","directories","pkg","isPackage","findRelativeConfig","pkgData","envName","caller","config","ignore","findRootConfig","dirname","loadConfig","name","Error","resolveShowConfigPath","ROOT_CONFIG_FILENAMES","exports","resolvePlugin","resolvePreset","loadPlugin","loadPreset"],"sources":["../../../src/config/files/index-browser.ts"],"sourcesContent":["import type { Handler } from \"gensync\";\n\nimport type {\n ConfigFile,\n IgnoreFile,\n RelativeConfig,\n FilePackageData,\n} from \"./types\";\n\nimport type { CallerMetadata } from \"../validation/options\";\n\nexport type { ConfigFile, IgnoreFile, RelativeConfig, FilePackageData };\n\nexport function findConfigUpwards(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n rootDir: string,\n): string | null {\n return null;\n}\n\n// eslint-disable-next-line require-yield\nexport function* findPackageData(filepath: string): Handler<FilePackageData> {\n return {\n filepath,\n directories: [],\n pkg: null,\n isPackage: false,\n };\n}\n\n// eslint-disable-next-line require-yield\nexport function* findRelativeConfig(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n pkgData: FilePackageData,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n envName: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n caller: CallerMetadata | undefined,\n): Handler<RelativeConfig> {\n return { config: null, ignore: null };\n}\n\n// eslint-disable-next-line require-yield\nexport function* findRootConfig(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n dirname: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n envName: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n caller: CallerMetadata | undefined,\n): Handler<ConfigFile | null> {\n return null;\n}\n\n// eslint-disable-next-line require-yield\nexport function* loadConfig(\n name: string,\n dirname: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n envName: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n caller: CallerMetadata | undefined,\n): Handler<ConfigFile> {\n throw new Error(`Cannot load ${name} relative to ${dirname} in a browser`);\n}\n\n// eslint-disable-next-line require-yield\nexport function* resolveShowConfigPath(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n dirname: string,\n): Handler<string | null> {\n return null;\n}\n\nexport const ROOT_CONFIG_FILENAMES: string[] = [];\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function resolvePlugin(name: string, dirname: string): string | null {\n return null;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function resolvePreset(name: string, dirname: string): string | null {\n return null;\n}\n\nexport function loadPlugin(\n name: string,\n dirname: string,\n): Handler<{\n filepath: string;\n value: unknown;\n}> {\n throw new Error(\n `Cannot load plugin ${name} relative to ${dirname} in a browser`,\n );\n}\n\nexport function loadPreset(\n name: string,\n dirname: string,\n): Handler<{\n filepath: string;\n value: unknown;\n}> {\n throw new Error(\n `Cannot load preset ${name} relative to ${dirname} in a browser`,\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAaO,SAASA,iBAAiBA,CAE/BC,OAAe,EACA;EACf,OAAO,IAAI;AACb;AAGO,UAAUC,eAAeA,CAACC,QAAgB,EAA4B;EAC3E,OAAO;IACLA,QAAQ;IACRC,WAAW,EAAE,EAAE;IACfC,GAAG,EAAE,IAAI;IACTC,SAAS,EAAE;EACb,CAAC;AACH;AAGO,UAAUC,kBAAkBA,CAEjCC,OAAwB,EAExBC,OAAe,EAEfC,MAAkC,EACT;EACzB,OAAO;IAAEC,MAAM,EAAE,IAAI;IAAEC,MAAM,EAAE;EAAK,CAAC;AACvC;AAGO,UAAUC,cAAcA,CAE7BC,OAAe,EAEfL,OAAe,EAEfC,MAAkC,EACN;EAC5B,OAAO,IAAI;AACb;AAGO,UAAUK,UAAUA,CACzBC,IAAY,EACZF,OAAe,EAEfL,OAAe,EAEfC,MAAkC,EACb;EACrB,MAAM,IAAIO,KAAK,CAAE,eAAcD,IAAK,gBAAeF,OAAQ,eAAc,CAAC;AAC5E;AAGO,UAAUI,qBAAqBA,CAEpCJ,OAAe,EACS;EACxB,OAAO,IAAI;AACb;AAEO,MAAMK,qBAA+B,GAAG,EAAE;AAACC,OAAA,CAAAD,qBAAA,GAAAA,qBAAA;AAG3C,SAASE,aAAaA,CAACL,IAAY,EAAEF,OAAe,EAAiB;EAC1E,OAAO,IAAI;AACb;AAGO,SAASQ,aAAaA,CAACN,IAAY,EAAEF,OAAe,EAAiB;EAC1E,OAAO,IAAI;AACb;AAEO,SAASS,UAAUA,CACxBP,IAAY,EACZF,OAAe,EAId;EACD,MAAM,IAAIG,KAAK,CACZ,sBAAqBD,IAAK,gBAAeF,OAAQ,eAAc,CACjE;AACH;AAEO,SAASU,UAAUA,CACxBR,IAAY,EACZF,OAAe,EAId;EACD,MAAM,IAAIG,KAAK,CACZ,sBAAqBD,IAAK,gBAAeF,OAAQ,eAAc,CACjE;AACH;AAAC"}
|
78
packages/inula-intl/node_modules/@babel/core/lib/config/files/index.js
generated
vendored
Normal file
78
packages/inula-intl/node_modules/@babel/core/lib/config/files/index.js
generated
vendored
Normal file
|
@ -0,0 +1,78 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "ROOT_CONFIG_FILENAMES", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _configuration.ROOT_CONFIG_FILENAMES;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "findConfigUpwards", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _configuration.findConfigUpwards;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "findPackageData", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _package.findPackageData;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "findRelativeConfig", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _configuration.findRelativeConfig;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "findRootConfig", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _configuration.findRootConfig;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "loadConfig", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _configuration.loadConfig;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "loadPlugin", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return plugins.loadPlugin;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "loadPreset", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return plugins.loadPreset;
|
||||
}
|
||||
});
|
||||
exports.resolvePreset = exports.resolvePlugin = void 0;
|
||||
Object.defineProperty(exports, "resolveShowConfigPath", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _configuration.resolveShowConfigPath;
|
||||
}
|
||||
});
|
||||
var _package = require("./package");
|
||||
var _configuration = require("./configuration");
|
||||
var plugins = require("./plugins");
|
||||
function _gensync() {
|
||||
const data = require("gensync");
|
||||
_gensync = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
({});
|
||||
const resolvePlugin = _gensync()(plugins.resolvePlugin).sync;
|
||||
exports.resolvePlugin = resolvePlugin;
|
||||
const resolvePreset = _gensync()(plugins.resolvePreset).sync;
|
||||
exports.resolvePreset = resolvePreset;
|
||||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/index.js.map
generated
vendored
Normal file
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/index.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"names":["_package","require","_configuration","plugins","_gensync","data","resolvePlugin","gensync","sync","exports","resolvePreset"],"sources":["../../../src/config/files/index.ts"],"sourcesContent":["type indexBrowserType = typeof import(\"./index-browser\");\ntype indexType = typeof import(\"./index\");\n\n// Kind of gross, but essentially asserting that the exports of this module are the same as the\n// exports of index-browser, since this file may be replaced at bundle time with index-browser.\n({} as any as indexBrowserType as indexType);\n\nexport { findPackageData } from \"./package\";\n\nexport {\n findConfigUpwards,\n findRelativeConfig,\n findRootConfig,\n loadConfig,\n resolveShowConfigPath,\n ROOT_CONFIG_FILENAMES,\n} from \"./configuration\";\nexport type {\n ConfigFile,\n IgnoreFile,\n RelativeConfig,\n FilePackageData,\n} from \"./types\";\nexport { loadPlugin, loadPreset } from \"./plugins\";\n\nimport gensync from \"gensync\";\nimport * as plugins from \"./plugins\";\n\nexport const resolvePlugin = gensync(plugins.resolvePlugin).sync;\nexport const resolvePreset = gensync(plugins.resolvePreset).sync;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AAcA,IAAAE,OAAA,GAAAF,OAAA;AAEA,SAAAG,SAAA;EAAA,MAAAC,IAAA,GAAAJ,OAAA;EAAAG,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AApBA,CAAC,CAAC,CAAC;AAuBI,MAAMC,aAAa,GAAGC,UAAO,CAACJ,OAAO,CAACG,aAAa,CAAC,CAACE,IAAI;AAACC,OAAA,CAAAH,aAAA,GAAAA,aAAA;AAC1D,MAAMI,aAAa,GAAGH,UAAO,CAACJ,OAAO,CAACO,aAAa,CAAC,CAACF,IAAI;AAACC,OAAA,CAAAC,aAAA,GAAAA,aAAA;AAAA"}
|
137
packages/inula-intl/node_modules/@babel/core/lib/config/files/module-types.js
generated
vendored
Normal file
137
packages/inula-intl/node_modules/@babel/core/lib/config/files/module-types.js
generated
vendored
Normal file
|
@ -0,0 +1,137 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = loadCodeDefault;
|
||||
exports.supportsESM = void 0;
|
||||
var _async = require("../../gensync-utils/async");
|
||||
function _path() {
|
||||
const data = require("path");
|
||||
_path = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
function _url() {
|
||||
const data = require("url");
|
||||
_url = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
function _semver() {
|
||||
const data = require("semver");
|
||||
_semver = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
var _rewriteStackTrace = require("../../errors/rewrite-stack-trace");
|
||||
var _configError = require("../../errors/config-error");
|
||||
var _transformFile = require("../../transform-file");
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
||||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
||||
let import_;
|
||||
try {
|
||||
import_ = require("./import.cjs");
|
||||
} catch (_unused) {}
|
||||
const supportsESM = _semver().satisfies(process.versions.node, "^12.17 || >=13.2");
|
||||
exports.supportsESM = supportsESM;
|
||||
function* loadCodeDefault(filepath, asyncError, fallbackToTranspiledModule = false) {
|
||||
switch (_path().extname(filepath)) {
|
||||
case ".cjs":
|
||||
return loadCjsDefault(filepath, fallbackToTranspiledModule);
|
||||
case ".mjs":
|
||||
break;
|
||||
case ".cts":
|
||||
return loadCtsDefault(filepath);
|
||||
default:
|
||||
try {
|
||||
return loadCjsDefault(filepath, fallbackToTranspiledModule);
|
||||
} catch (e) {
|
||||
if (e.code !== "ERR_REQUIRE_ESM") throw e;
|
||||
}
|
||||
}
|
||||
if (yield* (0, _async.isAsync)()) {
|
||||
return yield* (0, _async.waitFor)(loadMjsDefault(filepath));
|
||||
}
|
||||
throw new _configError.default(asyncError, filepath);
|
||||
}
|
||||
function loadCtsDefault(filepath) {
|
||||
const ext = ".cts";
|
||||
const hasTsSupport = !!(require.extensions[".ts"] || require.extensions[".cts"] || require.extensions[".mts"]);
|
||||
let handler;
|
||||
if (!hasTsSupport) {
|
||||
const opts = {
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
sourceType: "script",
|
||||
sourceMaps: "inline",
|
||||
presets: [[getTSPreset(filepath), Object.assign({
|
||||
disallowAmbiguousJSXLike: true,
|
||||
allExtensions: true,
|
||||
onlyRemoveTypeImports: true,
|
||||
optimizeConstEnums: true
|
||||
}, {
|
||||
allowDeclareFields: true
|
||||
})]]
|
||||
};
|
||||
handler = function (m, filename) {
|
||||
if (handler && filename.endsWith(ext)) {
|
||||
return m._compile((0, _transformFile.transformFileSync)(filename, Object.assign({}, opts, {
|
||||
filename
|
||||
})).code, filename);
|
||||
}
|
||||
return require.extensions[".js"](m, filename);
|
||||
};
|
||||
require.extensions[ext] = handler;
|
||||
}
|
||||
try {
|
||||
return (0, _rewriteStackTrace.endHiddenCallStack)(require)(filepath);
|
||||
} finally {
|
||||
if (!hasTsSupport) {
|
||||
if (require.extensions[ext] === handler) delete require.extensions[ext];
|
||||
handler = undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
function loadCjsDefault(filepath, fallbackToTranspiledModule) {
|
||||
const module = (0, _rewriteStackTrace.endHiddenCallStack)(require)(filepath);
|
||||
return module != null && module.__esModule ? module.default || (fallbackToTranspiledModule ? module : undefined) : module;
|
||||
}
|
||||
function loadMjsDefault(_x) {
|
||||
return _loadMjsDefault.apply(this, arguments);
|
||||
}
|
||||
function _loadMjsDefault() {
|
||||
_loadMjsDefault = _asyncToGenerator(function* (filepath) {
|
||||
if (!import_) {
|
||||
throw new _configError.default("Internal error: Native ECMAScript modules aren't supported by this platform.\n", filepath);
|
||||
}
|
||||
const module = yield (0, _rewriteStackTrace.endHiddenCallStack)(import_)((0, _url().pathToFileURL)(filepath));
|
||||
return module.default;
|
||||
});
|
||||
return _loadMjsDefault.apply(this, arguments);
|
||||
}
|
||||
function getTSPreset(filepath) {
|
||||
try {
|
||||
return require("@babel/preset-typescript");
|
||||
} catch (error) {
|
||||
if (error.code !== "MODULE_NOT_FOUND") throw error;
|
||||
let message = "You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!";
|
||||
if (process.versions.pnp) {
|
||||
message += `
|
||||
If you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:
|
||||
|
||||
packageExtensions:
|
||||
\t"@babel/core@*":
|
||||
\t\tpeerDependencies:
|
||||
\t\t\t"@babel/preset-typescript": "*"
|
||||
`;
|
||||
}
|
||||
throw new _configError.default(message, filepath);
|
||||
}
|
||||
}
|
||||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=module-types.js.map
|
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/module-types.js.map
generated
vendored
Normal file
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/module-types.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
61
packages/inula-intl/node_modules/@babel/core/lib/config/files/package.js
generated
vendored
Normal file
61
packages/inula-intl/node_modules/@babel/core/lib/config/files/package.js
generated
vendored
Normal file
|
@ -0,0 +1,61 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.findPackageData = findPackageData;
|
||||
function _path() {
|
||||
const data = require("path");
|
||||
_path = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
var _utils = require("./utils");
|
||||
var _configError = require("../../errors/config-error");
|
||||
const PACKAGE_FILENAME = "package.json";
|
||||
const readConfigPackage = (0, _utils.makeStaticFileCache)((filepath, content) => {
|
||||
let options;
|
||||
try {
|
||||
options = JSON.parse(content);
|
||||
} catch (err) {
|
||||
throw new _configError.default(`Error while parsing JSON - ${err.message}`, filepath);
|
||||
}
|
||||
if (!options) throw new Error(`${filepath}: No config detected`);
|
||||
if (typeof options !== "object") {
|
||||
throw new _configError.default(`Config returned typeof ${typeof options}`, filepath);
|
||||
}
|
||||
if (Array.isArray(options)) {
|
||||
throw new _configError.default(`Expected config object but found array`, filepath);
|
||||
}
|
||||
return {
|
||||
filepath,
|
||||
dirname: _path().dirname(filepath),
|
||||
options
|
||||
};
|
||||
});
|
||||
function* findPackageData(filepath) {
|
||||
let pkg = null;
|
||||
const directories = [];
|
||||
let isPackage = true;
|
||||
let dirname = _path().dirname(filepath);
|
||||
while (!pkg && _path().basename(dirname) !== "node_modules") {
|
||||
directories.push(dirname);
|
||||
pkg = yield* readConfigPackage(_path().join(dirname, PACKAGE_FILENAME));
|
||||
const nextLoc = _path().dirname(dirname);
|
||||
if (dirname === nextLoc) {
|
||||
isPackage = false;
|
||||
break;
|
||||
}
|
||||
dirname = nextLoc;
|
||||
}
|
||||
return {
|
||||
filepath,
|
||||
directories,
|
||||
pkg,
|
||||
isPackage
|
||||
};
|
||||
}
|
||||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=package.js.map
|
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/package.js.map
generated
vendored
Normal file
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/package.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"names":["_path","data","require","_utils","_configError","PACKAGE_FILENAME","readConfigPackage","makeStaticFileCache","filepath","content","options","JSON","parse","err","ConfigError","message","Error","Array","isArray","dirname","path","findPackageData","pkg","directories","isPackage","basename","push","join","nextLoc"],"sources":["../../../src/config/files/package.ts"],"sourcesContent":["import path from \"path\";\nimport type { Handler } from \"gensync\";\nimport { makeStaticFileCache } from \"./utils\";\n\nimport type { ConfigFile, FilePackageData } from \"./types\";\n\nimport ConfigError from \"../../errors/config-error\";\n\nconst PACKAGE_FILENAME = \"package.json\";\n\nconst readConfigPackage = makeStaticFileCache(\n (filepath, content): ConfigFile => {\n let options;\n try {\n options = JSON.parse(content) as unknown;\n } catch (err) {\n throw new ConfigError(\n `Error while parsing JSON - ${err.message}`,\n filepath,\n );\n }\n\n if (!options) throw new Error(`${filepath}: No config detected`);\n\n if (typeof options !== \"object\") {\n throw new ConfigError(\n `Config returned typeof ${typeof options}`,\n filepath,\n );\n }\n if (Array.isArray(options)) {\n throw new ConfigError(`Expected config object but found array`, filepath);\n }\n\n return {\n filepath,\n dirname: path.dirname(filepath),\n options,\n };\n },\n);\n\n/**\n * Find metadata about the package that this file is inside of. Resolution\n * of Babel's config requires general package information to decide when to\n * search for .babelrc files\n */\nexport function* findPackageData(filepath: string): Handler<FilePackageData> {\n let pkg = null;\n const directories = [];\n let isPackage = true;\n\n let dirname = path.dirname(filepath);\n while (!pkg && path.basename(dirname) !== \"node_modules\") {\n directories.push(dirname);\n\n pkg = yield* readConfigPackage(path.join(dirname, PACKAGE_FILENAME));\n\n const nextLoc = path.dirname(dirname);\n if (dirname === nextLoc) {\n isPackage = false;\n break;\n }\n dirname = nextLoc;\n }\n\n return { filepath, directories, pkg, isPackage };\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAE,MAAA,GAAAD,OAAA;AAIA,IAAAE,YAAA,GAAAF,OAAA;AAEA,MAAMG,gBAAgB,GAAG,cAAc;AAEvC,MAAMC,iBAAiB,GAAG,IAAAC,0BAAmB,EAC3C,CAACC,QAAQ,EAAEC,OAAO,KAAiB;EACjC,IAAIC,OAAO;EACX,IAAI;IACFA,OAAO,GAAGC,IAAI,CAACC,KAAK,CAACH,OAAO,CAAY;EAC1C,CAAC,CAAC,OAAOI,GAAG,EAAE;IACZ,MAAM,IAAIC,oBAAW,CAClB,8BAA6BD,GAAG,CAACE,OAAQ,EAAC,EAC3CP,QAAQ,CACT;EACH;EAEA,IAAI,CAACE,OAAO,EAAE,MAAM,IAAIM,KAAK,CAAE,GAAER,QAAS,sBAAqB,CAAC;EAEhE,IAAI,OAAOE,OAAO,KAAK,QAAQ,EAAE;IAC/B,MAAM,IAAII,oBAAW,CAClB,0BAAyB,OAAOJ,OAAQ,EAAC,EAC1CF,QAAQ,CACT;EACH;EACA,IAAIS,KAAK,CAACC,OAAO,CAACR,OAAO,CAAC,EAAE;IAC1B,MAAM,IAAII,oBAAW,CAAE,wCAAuC,EAAEN,QAAQ,CAAC;EAC3E;EAEA,OAAO;IACLA,QAAQ;IACRW,OAAO,EAAEC,OAAI,CAACD,OAAO,CAACX,QAAQ,CAAC;IAC/BE;EACF,CAAC;AACH,CAAC,CACF;AAOM,UAAUW,eAAeA,CAACb,QAAgB,EAA4B;EAC3E,IAAIc,GAAG,GAAG,IAAI;EACd,MAAMC,WAAW,GAAG,EAAE;EACtB,IAAIC,SAAS,GAAG,IAAI;EAEpB,IAAIL,OAAO,GAAGC,OAAI,CAACD,OAAO,CAACX,QAAQ,CAAC;EACpC,OAAO,CAACc,GAAG,IAAIF,OAAI,CAACK,QAAQ,CAACN,OAAO,CAAC,KAAK,cAAc,EAAE;IACxDI,WAAW,CAACG,IAAI,CAACP,OAAO,CAAC;IAEzBG,GAAG,GAAG,OAAOhB,iBAAiB,CAACc,OAAI,CAACO,IAAI,CAACR,OAAO,EAAEd,gBAAgB,CAAC,CAAC;IAEpE,MAAMuB,OAAO,GAAGR,OAAI,CAACD,OAAO,CAACA,OAAO,CAAC;IACrC,IAAIA,OAAO,KAAKS,OAAO,EAAE;MACvBJ,SAAS,GAAG,KAAK;MACjB;IACF;IACAL,OAAO,GAAGS,OAAO;EACnB;EAEA,OAAO;IAAEpB,QAAQ;IAAEe,WAAW;IAAED,GAAG;IAAEE;EAAU,CAAC;AAClD;AAAC"}
|
218
packages/inula-intl/node_modules/@babel/core/lib/config/files/plugins.js
generated
vendored
Normal file
218
packages/inula-intl/node_modules/@babel/core/lib/config/files/plugins.js
generated
vendored
Normal file
|
@ -0,0 +1,218 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.loadPlugin = loadPlugin;
|
||||
exports.loadPreset = loadPreset;
|
||||
exports.resolvePlugin = resolvePlugin;
|
||||
exports.resolvePreset = resolvePreset;
|
||||
function _debug() {
|
||||
const data = require("debug");
|
||||
_debug = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
function _path() {
|
||||
const data = require("path");
|
||||
_path = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
function _gensync() {
|
||||
const data = require("gensync");
|
||||
_gensync = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
var _async = require("../../gensync-utils/async");
|
||||
var _moduleTypes = require("./module-types");
|
||||
function _url() {
|
||||
const data = require("url");
|
||||
_url = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
var _importMetaResolve = require("./import-meta-resolve");
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
||||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
||||
const debug = _debug()("babel:config:loading:files:plugins");
|
||||
const EXACT_RE = /^module:/;
|
||||
const BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-plugin-)/;
|
||||
const BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-preset-)/;
|
||||
const BABEL_PLUGIN_ORG_RE = /^(@babel\/)(?!plugin-|[^/]+\/)/;
|
||||
const BABEL_PRESET_ORG_RE = /^(@babel\/)(?!preset-|[^/]+\/)/;
|
||||
const OTHER_PLUGIN_ORG_RE = /^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/;
|
||||
const OTHER_PRESET_ORG_RE = /^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/;
|
||||
const OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/;
|
||||
function* resolvePlugin(name, dirname) {
|
||||
return yield* resolveStandardizedName("plugin", name, dirname);
|
||||
}
|
||||
function* resolvePreset(name, dirname) {
|
||||
return yield* resolveStandardizedName("preset", name, dirname);
|
||||
}
|
||||
function* loadPlugin(name, dirname) {
|
||||
const filepath = yield* resolvePlugin(name, dirname);
|
||||
const value = yield* requireModule("plugin", filepath);
|
||||
debug("Loaded plugin %o from %o.", name, dirname);
|
||||
return {
|
||||
filepath,
|
||||
value
|
||||
};
|
||||
}
|
||||
function* loadPreset(name, dirname) {
|
||||
const filepath = yield* resolvePreset(name, dirname);
|
||||
const value = yield* requireModule("preset", filepath);
|
||||
debug("Loaded preset %o from %o.", name, dirname);
|
||||
return {
|
||||
filepath,
|
||||
value
|
||||
};
|
||||
}
|
||||
function standardizeName(type, name) {
|
||||
if (_path().isAbsolute(name)) return name;
|
||||
const isPreset = type === "preset";
|
||||
return name.replace(isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE, `babel-${type}-`).replace(isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE, `$1${type}-`).replace(isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE, `$1babel-${type}-`).replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`).replace(EXACT_RE, "");
|
||||
}
|
||||
function* resolveAlternativesHelper(type, name) {
|
||||
const standardizedName = standardizeName(type, name);
|
||||
const {
|
||||
error,
|
||||
value
|
||||
} = yield standardizedName;
|
||||
if (!error) return value;
|
||||
if (error.code !== "MODULE_NOT_FOUND") throw error;
|
||||
if (standardizedName !== name && !(yield name).error) {
|
||||
error.message += `\n- If you want to resolve "${name}", use "module:${name}"`;
|
||||
}
|
||||
if (!(yield standardizeName(type, "@babel/" + name)).error) {
|
||||
error.message += `\n- Did you mean "@babel/${name}"?`;
|
||||
}
|
||||
const oppositeType = type === "preset" ? "plugin" : "preset";
|
||||
if (!(yield standardizeName(oppositeType, name)).error) {
|
||||
error.message += `\n- Did you accidentally pass a ${oppositeType} as a ${type}?`;
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
function tryRequireResolve(id, {
|
||||
paths: [dirname]
|
||||
}) {
|
||||
try {
|
||||
return {
|
||||
error: null,
|
||||
value: (((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, {
|
||||
paths: [b]
|
||||
}, M = require("module")) => {
|
||||
let f = M._findPath(r, M._nodeModulePaths(b).concat(b));
|
||||
if (f) return f;
|
||||
f = new Error(`Cannot resolve module '${r}'`);
|
||||
f.code = "MODULE_NOT_FOUND";
|
||||
throw f;
|
||||
})(id, {
|
||||
paths: [dirname]
|
||||
})
|
||||
};
|
||||
} catch (error) {
|
||||
return {
|
||||
error,
|
||||
value: null
|
||||
};
|
||||
}
|
||||
}
|
||||
function tryImportMetaResolve(_x, _x2) {
|
||||
return _tryImportMetaResolve.apply(this, arguments);
|
||||
}
|
||||
function _tryImportMetaResolve() {
|
||||
_tryImportMetaResolve = _asyncToGenerator(function* (id, options) {
|
||||
try {
|
||||
return {
|
||||
error: null,
|
||||
value: yield (0, _importMetaResolve.default)(id, options)
|
||||
};
|
||||
} catch (error) {
|
||||
return {
|
||||
error,
|
||||
value: null
|
||||
};
|
||||
}
|
||||
});
|
||||
return _tryImportMetaResolve.apply(this, arguments);
|
||||
}
|
||||
function resolveStandardizedNameForRequire(type, name, dirname) {
|
||||
const it = resolveAlternativesHelper(type, name);
|
||||
let res = it.next();
|
||||
while (!res.done) {
|
||||
res = it.next(tryRequireResolve(res.value, {
|
||||
paths: [dirname]
|
||||
}));
|
||||
}
|
||||
return res.value;
|
||||
}
|
||||
function resolveStandardizedNameForImport(_x3, _x4, _x5) {
|
||||
return _resolveStandardizedNameForImport.apply(this, arguments);
|
||||
}
|
||||
function _resolveStandardizedNameForImport() {
|
||||
_resolveStandardizedNameForImport = _asyncToGenerator(function* (type, name, dirname) {
|
||||
const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname, "./babel-virtual-resolve-base.js")).href;
|
||||
const it = resolveAlternativesHelper(type, name);
|
||||
let res = it.next();
|
||||
while (!res.done) {
|
||||
res = it.next(yield tryImportMetaResolve(res.value, parentUrl));
|
||||
}
|
||||
return (0, _url().fileURLToPath)(res.value);
|
||||
});
|
||||
return _resolveStandardizedNameForImport.apply(this, arguments);
|
||||
}
|
||||
const resolveStandardizedName = _gensync()({
|
||||
sync(type, name, dirname = process.cwd()) {
|
||||
return resolveStandardizedNameForRequire(type, name, dirname);
|
||||
},
|
||||
async(type, name, dirname = process.cwd()) {
|
||||
return _asyncToGenerator(function* () {
|
||||
if (!_moduleTypes.supportsESM) {
|
||||
return resolveStandardizedNameForRequire(type, name, dirname);
|
||||
}
|
||||
try {
|
||||
return yield resolveStandardizedNameForImport(type, name, dirname);
|
||||
} catch (e) {
|
||||
try {
|
||||
return resolveStandardizedNameForRequire(type, name, dirname);
|
||||
} catch (e2) {
|
||||
if (e.type === "MODULE_NOT_FOUND") throw e;
|
||||
if (e2.type === "MODULE_NOT_FOUND") throw e2;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
})();
|
||||
}
|
||||
});
|
||||
{
|
||||
var LOADING_MODULES = new Set();
|
||||
}
|
||||
function* requireModule(type, name) {
|
||||
{
|
||||
if (!(yield* (0, _async.isAsync)()) && LOADING_MODULES.has(name)) {
|
||||
throw new Error(`Reentrant ${type} detected trying to load "${name}". This module is not ignored ` + "and is trying to load itself while compiling itself, leading to a dependency cycle. " + 'We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.');
|
||||
}
|
||||
}
|
||||
try {
|
||||
{
|
||||
LOADING_MODULES.add(name);
|
||||
}
|
||||
return yield* (0, _moduleTypes.default)(name, `You appear to be using a native ECMAScript module ${type}, ` + "which is only supported when running Babel asynchronously.", true);
|
||||
} catch (err) {
|
||||
err.message = `[BABEL]: ${err.message} (While processing: ${name})`;
|
||||
throw err;
|
||||
} finally {
|
||||
{
|
||||
LOADING_MODULES.delete(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=plugins.js.map
|
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/plugins.js.map
generated
vendored
Normal file
1
packages/inula-intl/node_modules/@babel/core/lib/config/files/plugins.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3
packages/inula-intl/node_modules/@babel/core/lib/config/files/types.js
generated
vendored
Normal file
3
packages/inula-intl/node_modules/@babel/core/lib/config/files/types.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=types.js.map
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue