Comparing version 0.0.4 to 0.0.5
/* | ||
* only-state.js 0.0.4 | ||
* only-state.js 0.0.5 | ||
* author:webszy | ||
* date:2022/5/10 下午5:38:57 | ||
* date:2022/5/10 下午6:09:30 | ||
*/ | ||
@@ -6,0 +6,0 @@ import { reactive, computed, toRefs } from 'vue'; |
{ | ||
"name": "onlystate", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A state and only state management library for Vue3", | ||
"main": "/dist/only-state.js", | ||
"main": "dist/only-state.js", | ||
"type": "module", | ||
"types": "types/index.d.ts", | ||
"scripts": { | ||
@@ -30,4 +31,5 @@ "build": "rollup -c", | ||
"rollup": "^2.72.1", | ||
"rollup-plugin-dts": "^4.2.1", | ||
"rollup-plugin-typescript2": "^0.31.2" | ||
} | ||
} |
import { nodeResolve } from '@rollup/plugin-node-resolve'; | ||
import {version} from './package.json'; | ||
import typescript from 'rollup-plugin-typescript2'; | ||
// import dts from "rollup-plugin-dts"; | ||
export default { | ||
import {defineConfig} from 'rollup' | ||
export default defineConfig({ | ||
input: "src/index.ts", // 入口 | ||
@@ -19,5 +21,5 @@ output: { | ||
nodeResolve({dedupe:['@vue/devtools-api']}), | ||
typescript({}) | ||
typescript({clean:true,useTsconfigDeclarationDir:true}) | ||
], // 各种插件使用的配置 | ||
external: ['vue'],// 外部依赖的配置 | ||
}; | ||
}) |
@@ -46,2 +46,3 @@ { | ||
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ | ||
"declarationDir": "./types", | ||
// "declarationMap": true, /* Create sourcemaps for d.ts files. */ | ||
@@ -48,0 +49,0 @@ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
32427
682
0
5