flattens dist folder
This commit is contained in:
2
auth.d.ts
vendored
2
auth.d.ts
vendored
@@ -1 +1 @@
|
|||||||
export * from './dist/src/auth';
|
export * from './dist/auth';
|
||||||
|
|||||||
2
auth.js
2
auth.js
@@ -1 +1 @@
|
|||||||
module.exports = require('./dist/src/auth');
|
module.exports = require('./dist/auth');
|
||||||
|
|||||||
2
bin.js
2
bin.js
@@ -1,2 +1,2 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
require('./dist/src/bin');
|
require('./dist/bin');
|
||||||
|
|||||||
4
config.d.ts
vendored
4
config.d.ts
vendored
@@ -1,2 +1,2 @@
|
|||||||
export { buildConfig } from './dist/src/config/build';
|
export { buildConfig } from './dist/config/build';
|
||||||
export * from './dist/src/config/types';
|
export * from './dist/config/types';
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
exports.buildConfig = require('./dist/src/config/build').buildConfig;
|
exports.buildConfig = require('./dist/config/build').buildConfig;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { APIError, Forbidden } = require('./dist/src/errors');
|
const { APIError, Forbidden } = require('./dist/errors');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
APIError,
|
APIError,
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
"description": "CMS and Application Framework",
|
"description": "CMS and Application Framework",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"author": "Payload CMS LLC",
|
"author": "Payload CMS LLC",
|
||||||
"main": "./dist/src/index.js",
|
"main": "./dist/index.js",
|
||||||
"typings": "./dist/src/index.d.ts",
|
"typings": "./dist/index.d.ts",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"bin": {
|
"bin": {
|
||||||
"payload": "./bin.js"
|
"payload": "./bin.js"
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"copyfiles": "copyfiles src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png} dist/",
|
"copyfiles": "copyfiles src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png} dist/",
|
||||||
"build:components": "webpack --config src/webpack/components.config.js",
|
"build:components": "webpack --config src/webpack/components.config.js",
|
||||||
"build": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.ts node dist/src/bin/build",
|
"build": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.ts node dist/bin/build",
|
||||||
"build:tsc": "tsc",
|
"build:tsc": "tsc",
|
||||||
"build:watch": "nodemon --watch 'src/**' --ext 'ts' --exec 'yarn build:tsc'",
|
"build:watch": "nodemon --watch 'src/**' --ext 'ts' --exec 'yarn build:tsc'",
|
||||||
"build:analyze": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.js PAYLOAD_ANALYZE_BUNDLE=true node src/bin/build",
|
"build:analyze": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.js PAYLOAD_ANALYZE_BUNDLE=true node src/bin/build",
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import { Props } from './types';
|
||||||
|
|
||||||
import './index.scss';
|
import './index.scss';
|
||||||
|
|
||||||
const baseClass = 'radio-input';
|
const baseClass = 'radio-input';
|
||||||
|
|
||||||
const RadioInput = (props) => {
|
const RadioInput: React.FC<Props> = (props) => {
|
||||||
const { isSelected, option, onChange, path } = props;
|
const { isSelected, option, onChange, path } = props;
|
||||||
|
|
||||||
const classes = [
|
const classes = [
|
||||||
@@ -33,22 +33,4 @@ const RadioInput = (props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
RadioInput.defaultProps = {
|
|
||||||
isSelected: false,
|
|
||||||
onChange: undefined,
|
|
||||||
};
|
|
||||||
|
|
||||||
RadioInput.propTypes = {
|
|
||||||
isSelected: PropTypes.bool,
|
|
||||||
option: PropTypes.shape({
|
|
||||||
label: PropTypes.string,
|
|
||||||
value: PropTypes.oneOfType([
|
|
||||||
PropTypes.string,
|
|
||||||
PropTypes.number,
|
|
||||||
]),
|
|
||||||
}).isRequired,
|
|
||||||
onChange: PropTypes.func,
|
|
||||||
path: PropTypes.string.isRequired,
|
|
||||||
};
|
|
||||||
|
|
||||||
export default RadioInput;
|
export default RadioInput;
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
export type Props = {
|
||||||
|
isSelected: boolean
|
||||||
|
option: {
|
||||||
|
label: string
|
||||||
|
value: string
|
||||||
|
}
|
||||||
|
onChange: (val: string) => void
|
||||||
|
path: string
|
||||||
|
}
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
"dist",
|
"dist",
|
||||||
"build",
|
"build",
|
||||||
"tests",
|
"tests",
|
||||||
"**/*.spec.ts",
|
"**/*.spec.js",
|
||||||
"node_modules"
|
"node_modules"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
2
types.d.ts
vendored
2
types.d.ts
vendored
@@ -1 +1 @@
|
|||||||
export * from './dist/src/types';
|
export * from './dist/types';
|
||||||
|
|||||||
Reference in New Issue
Block a user