sirius-common-utils 1.0.7 → 1.0.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sirius-common-utils",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "main": "./dist/sirius-common-utils.umd.cjs",
6
6
  "module": "./dist/sirius-common-utils.js",
@@ -10,6 +10,9 @@
10
10
  "require": "./dist/sirius-common-utils.umd.cjs"
11
11
  }
12
12
  },
13
+ "files": [
14
+ "./dist"
15
+ ],
13
16
  "repository": {
14
17
  "type": "git",
15
18
  "url": "git+https://github.com/yangshuyi/js-common-utils.git"
@@ -27,7 +30,7 @@
27
30
  "type": "module",
28
31
  "scripts": {
29
32
  "dev": "vite",
30
- "build": "vite build",
33
+ "build": "vite build && npm publish",
31
34
  "preview": "vite preview"
32
35
  },
33
36
  "peerDependencies": {
package/.eslintrc.cjs DELETED
@@ -1,20 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: { browser: true, es2020: true },
4
- extends: [
5
- 'eslint:recommended',
6
- 'plugin:react/recommended',
7
- 'plugin:react/jsx-runtime',
8
- 'plugin:react-hooks/recommended',
9
- ],
10
- ignorePatterns: ['dist', '.eslintrc.cjs'],
11
- parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
12
- settings: { react: { version: '18.2' } },
13
- plugins: ['react-refresh'],
14
- rules: {
15
- 'react-refresh/only-export-components': [
16
- 'warn',
17
- { allowConstantExport: true },
18
- ],
19
- },
20
- }
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="JAVA_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$" />
6
- <orderEntry type="inheritedJdk" />
7
- <orderEntry type="sourceFolder" forTests="false" />
8
- </component>
9
- </module>
package/.idea/misc.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager">
4
- <output url="file://$PROJECT_DIR$/out" />
5
- </component>
6
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/js-common-utils.iml" filepath="$PROJECT_DIR$/.idea/js-common-utils.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>
package/vite.config.js DELETED
@@ -1,17 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import react from '@vitejs/plugin-react'
3
-
4
- // https://vitejs.dev/config/
5
- export default defineConfig({
6
- plugins: [react()],
7
- build:{
8
- rollupOptions: {
9
- external: ["vue","axios","dayjs","js-base64","js-md5","lodash"],
10
- },
11
- minify: false,
12
- lib:{
13
- name: 'sirius-common-utils',
14
- entry: './src/packages/index.js'
15
- }
16
- },
17
- })