Skip to content

Commit

Permalink
chore: update packages versions
Browse files Browse the repository at this point in the history
  • Loading branch information
malangfox committed Jun 22, 2023
1 parent 99e847d commit c27baeb
Show file tree
Hide file tree
Showing 10 changed files with 6,771 additions and 6,031 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"eslint-plugin-react": "^7.22.0",
"jsdoc-to-mdx": "^1.1.2",
"lerna": "^5.1.4",
"typescript": "^4.6.2"
"typescript": "~4.6.2"
},
"workspaces": {
"packages": [
Expand Down
4 changes: 2 additions & 2 deletions packages/axes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egjs/axes",
"version": "3.8.4",
"version": "3.8.5",
"description": "A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates. You can easily create a UI that responds to user actions.",
"sideEffects": false,
"main": "dist/axes.cjs.js",
Expand Down Expand Up @@ -85,7 +85,7 @@
"string-replace-webpack-plugin": "0.1.3",
"sync-exec": "^0.6.2",
"ts-loader": "8.0.6",
"typescript": "^4.6.2",
"typescript": "~4.6.2",
"uglifyjs-webpack-plugin": "^1.1.6",
"webpack": "^3.10.0",
"webpack-dev-server": "^2.10.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
"@babel/plugin-proposal-decorators": "^7.18.6",
"@docusaurus/module-type-aliases": "2.0.0-beta.17",
"@egjs/flicking-plugins": "^4.4.0",
"@egjs/react-axes": "~3.2.4",
"@egjs/react-axes": "~3.2.5",
"@egjs/react-flicking": "^4.9.3",
"@tsconfig/docusaurus": "^1.0.4",
"bulma": "^0.9.3",
"docusaurus-plugin-sass": "^0.2.2",
"raw-loader": "^4.0.2",
"sas": "^3.0.4",
"sass": "^1.49.9",
"typescript": "^4.6.2"
"typescript": "~4.6.2"
},
"browserslist": {
"production": [
Expand Down
6 changes: 3 additions & 3 deletions packages/react-axes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egjs/react-axes",
"version": "3.2.4",
"version": "3.2.5",
"description": "A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates. You can easily create a UI that responds to user actions.",
"sideEffects": false,
"main": "dist/axes.cjs.js",
Expand All @@ -19,7 +19,7 @@
],
"dependencies": {
"@cfcs/react": "^0.1.0",
"@egjs/axes": "~3.8.4"
"@egjs/axes": "~3.8.5"
},
"devDependencies": {
"@egjs/build-helper": "^0.1.2",
Expand All @@ -35,7 +35,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"typescript": "^4.6.2"
"typescript": "~4.6.2"
},
"repository": {
"type": "git",
Expand Down
13 changes: 7 additions & 6 deletions packages/svelte-axes/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "@egjs/svelte-axes",
"version": "3.2.4",
"version": "3.2.5",
"description": "A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates. You can easily create a UI that responds to user actions.",
"sideEffects": false,
"types": "declaration/index.d.ts",
"module": "dist/imready.esm.js",
"main": "dist/imready.cjs.js",
"module": "dist/axes.esm.js",
"svelte": "dist/axes.esm.js",
"main": "dist/axes.cjs.js",
"scripts": {
"dev": "rollup -c -w",
"start": "sirv public --no-clear",
"build": "rollup -c rollup.build.config.js && npm run declaration",
"build": "rollup -c && npm run declaration",
"declaration": "rm -rf declaration && tsc -p tsconfig.declaration.json"
},
"repository": {
Expand All @@ -31,7 +32,7 @@
],
"dependencies": {
"@cfcs/svelte": "^0.1.0",
"@egjs/axes": "~3.8.4"
"@egjs/axes": "~3.8.5"
},
"devDependencies": {
"@babel/core": "^7.12.10",
Expand All @@ -55,6 +56,6 @@
"svelte-preprocess": "^4.6.1",
"ts-jest": "^26.4.4",
"tslib": "^1.10.0",
"typescript": "^4.1.6"
"typescript": "~4.6.2"
}
}
33 changes: 0 additions & 33 deletions packages/svelte-axes/rollup.build.config.js

This file was deleted.

114 changes: 32 additions & 82 deletions packages/svelte-axes/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,83 +1,33 @@
import svelte from 'rollup-plugin-svelte';
import commonjs from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';
import livereload from 'rollup-plugin-livereload';
import { terser } from 'rollup-plugin-terser';
import sveltePreprocess from 'svelte-preprocess';
import typescript from 'rollup-plugin-typescript';
import css from 'rollup-plugin-css-only';

const production = !process.env.ROLLUP_WATCH;

function serve() {
let server;

function toExit() {
if (server) server.kill(0);
}

return {
writeBundle() {
if (server) return;
server = require('child_process').spawn('npm', ['run', 'start', '--', '--dev'], {
stdio: ['ignore', 'inherit', 'inherit'],
shell: true
});

process.on('SIGTERM', toExit);
process.on('exit', toExit);
}
};
}

export default {
input: 'src/main.js',
output: {
sourcemap: true,
format: 'iife',
name: 'app',
file: 'public/build/bundle.js'
},
plugins: [
svelte({
preprocess: sveltePreprocess(),
compilerOptions: {
// enable run-time checks when not in production
dev: !production
}
}),
// we'll extract any component CSS out into
// a separate file - better for performance
css({ output: 'bundle.css' }),

// If you have external dependencies installed from
// npm, you'll most likely need these plugins. In
// some cases you'll need additional configuration -
// consult the documentation for details:
// https://github.com/rollup/plugins/tree/master/packages/commonjs
resolve({
browser: true,
dedupe: ['svelte']
}),
commonjs(),
typescript({
sourceMap: !production,
inlineSources: !production
}),

// In dev mode, call `npm run start` once
// the bundle has been generated
!production && serve(),

// Watch the `public` directory and refresh the
// browser on changes when not in production
!production && livereload('public'),

// If we're building for production (npm run build
// instead of npm run dev), minify
production && terser()
],
watch: {
clearScreen: false
}
import buildHelper from "@egjs/build-helper";
import svelte from "rollup-plugin-svelte";
import sveltePreprocess from "svelte-preprocess";

const defaultOptions = {
tsconfig: "",
commonjs: true,
external: {
svelte: "svelte",
},
plugins: [
svelte({
preprocess: sveltePreprocess(),
}),
],
};

export default buildHelper([
{
...defaultOptions,
input: "./src/svelte-axes/index.ts",
output: "dist/axes.cjs.js",
format: "cjs",
exports: "named",
},
{
...defaultOptions,
input: "./src/svelte-axes/index.ts",
output: "dist/axes.esm.js",
format: "es",
exports: "named",
},
]);
6 changes: 3 additions & 3 deletions packages/vue-axes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egjs/vue-axes",
"version": "3.2.4",
"version": "3.2.5",
"description": "A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates. You can easily create a UI that responds to user actions.",
"main": "dist/axes.cjs.js",
"module": "dist/axes.esm.js",
Expand All @@ -20,7 +20,7 @@
],
"dependencies": {
"@cfcs/vue3": "^0.1.0",
"@egjs/axes": "~3.8.4"
"@egjs/axes": "~3.8.5"
},
"devDependencies": {
"@egjs/build-helper": "^0.1.2",
Expand All @@ -36,7 +36,7 @@
"eslint": "^6.7.2",
"eslint-plugin-vue": "^7.0.0-0",
"print-sizes": "^0.1.0",
"typescript": "^4.5.2",
"typescript": "~4.6.2",
"vue": "^3.2.21"
},
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions packages/vue2-axes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egjs/vue2-axes",
"version": "3.2.4",
"version": "3.2.5",
"description": "A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates. You can easily create a UI that responds to user actions.",
"sideEffects": false,
"main": "dist/axes.cjs.js",
Expand All @@ -20,7 +20,7 @@
],
"dependencies": {
"@cfcs/vue2": "^0.1.0",
"@egjs/axes": "~3.8.4"
"@egjs/axes": "~3.8.5"
},
"devDependencies": {
"@babel/core": "^7.12.10",
Expand All @@ -38,7 +38,7 @@
"print-sizes": "^0.1.0",
"rollup-plugin-vue": "^5.1.9",
"tslib": "^2.3.1",
"typescript": "^4.1.6",
"typescript": "~4.6.2",
"vue": "^2.6.12",
"vue-template-compiler": "^2.6.11"
},
Expand Down
Loading

0 comments on commit c27baeb

Please sign in to comment.