@papillonarts/setup 0.31.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eslint/index.mjs"],"names":[],"mappings":"AAwBA;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eslint/index.mjs"],"names":[],"mappings":"AAwBA;;qCAqJC"}
|
package/build/eslint/index.mjs
CHANGED
|
@@ -71,6 +71,7 @@ export function getESLintSetup({ eslintIgnores }) {
|
|
|
71
71
|
jsdom: true,
|
|
72
72
|
renderMount: false,
|
|
73
73
|
renderShallow: false,
|
|
74
|
+
// __DEV__: 'readonly',
|
|
74
75
|
},
|
|
75
76
|
|
|
76
77
|
parser: tsParser,
|
|
@@ -106,7 +107,8 @@ export function getESLintSetup({ eslintIgnores }) {
|
|
|
106
107
|
project: [
|
|
107
108
|
'<root>/tsconfig.json',
|
|
108
109
|
'<root>packages/components/tsconfig.json',
|
|
109
|
-
'<root>packages/library/
|
|
110
|
+
'<root>packages/library/tsconfig.json',
|
|
111
|
+
'<root>packages/lodash/tsconfig.json',
|
|
110
112
|
'<root>packages/setup/jsconfig.json',
|
|
111
113
|
],
|
|
112
114
|
}),
|
|
@@ -123,7 +125,7 @@ export function getESLintSetup({ eslintIgnores }) {
|
|
|
123
125
|
'import/no-extraneous-dependencies': [
|
|
124
126
|
0,
|
|
125
127
|
{
|
|
126
|
-
devDependencies: ['**/*.test.js', '**/*.
|
|
128
|
+
devDependencies: ['**/*.test.js', '**/*.stories.js', '**/*.test.ts', '**/*.stories.tsx'],
|
|
127
129
|
},
|
|
128
130
|
],
|
|
129
131
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { StorybookConfig } from '@storybook/react-webpack5';
|
|
1
2
|
export declare function getStorybookMainSetup({ stories, staticDirs, includePaths }: {
|
|
2
3
|
stories: any;
|
|
3
4
|
staticDirs: any;
|
|
4
5
|
includePaths: any;
|
|
5
|
-
}):
|
|
6
|
+
}): StorybookConfig;
|
|
6
7
|
//# sourceMappingURL=mainSetup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mainSetup.d.ts","sourceRoot":"","sources":["../../src/storybook/mainSetup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mainSetup.d.ts","sourceRoot":"","sources":["../../src/storybook/mainSetup.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAOhE,wBAAgB,qBAAqB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE;;;;CAAA,mBAiQ1E"}
|
|
@@ -10,7 +10,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
11
|
var _object = require("@papillonarts/library/object");
|
|
12
12
|
var _webpack = require("@papillonarts/setup/webpack");
|
|
13
|
-
var _node = require("@storybook/react-webpack5/node");
|
|
14
13
|
var _forkTsCheckerWebpackPlugin = _interopRequireDefault(require("fork-ts-checker-webpack-plugin"));
|
|
15
14
|
var _webpack2 = _interopRequireDefault(require("webpack"));
|
|
16
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -23,7 +22,7 @@ function getStorybookMainSetup(_ref) {
|
|
|
23
22
|
var stories = _ref.stories,
|
|
24
23
|
staticDirs = _ref.staticDirs,
|
|
25
24
|
includePaths = _ref.includePaths;
|
|
26
|
-
|
|
25
|
+
var config = {
|
|
27
26
|
// https://storybook.js.org/docs/api/main-config/main-config-preview-body
|
|
28
27
|
previewBody: function previewBody(body) {
|
|
29
28
|
// https://github.com/storybookjs/storybook/issues/24429
|
|
@@ -195,7 +194,7 @@ function getStorybookMainSetup(_ref) {
|
|
|
195
194
|
issuer: /\.[jt]sx?$/,
|
|
196
195
|
use: ['@svgr/webpack']
|
|
197
196
|
}, {
|
|
198
|
-
test: /\.
|
|
197
|
+
test: /\.stories\.mdx$/,
|
|
199
198
|
use: [{
|
|
200
199
|
loader: 'babel-loader',
|
|
201
200
|
options: {
|
|
@@ -248,5 +247,6 @@ function getStorybookMainSetup(_ref) {
|
|
|
248
247
|
},
|
|
249
248
|
skipCompiler: false
|
|
250
249
|
}
|
|
251
|
-
}
|
|
250
|
+
};
|
|
251
|
+
return config;
|
|
252
252
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papillonarts/setup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "Papillon Arts Setup",
|
|
5
5
|
"homepage": "https://github.com/papillonarts/papillonarts/tree/master/packages/setup",
|
|
6
6
|
"repository": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"build-acceptance": "npm run build",
|
|
38
38
|
"build-release": "npm run build"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "4c79fc59638eb6e7b1cb30c0c690aa749050f9c8"
|
|
41
41
|
}
|