From 7e5c9fa0904d2d8d98da7124e14d62ba850df888 Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Fri, 8 Mar 2024 23:00:13 +0800 Subject: [PATCH] fix: old sass syntax https://github.com/picturepan2/spectre/issues/678 --- package.json | 16 +++++++++------- pnpm-lock.yaml | 9 +++++++++ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index a9eb57e..de8aadf 100755 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "build": "npm run clean && tiddlywiki-plugin-dev build", "build:library": "npm run clean && tiddlywiki-plugin-dev build --library --output dist/library", "publish": "npm run clean && tiddlywiki-plugin-dev publish", - "publish:offline": "npm run clean && tiddlywiki-plugin-dev publish --offline" + "publish:offline": "npm run clean && tiddlywiki-plugin-dev publish --offline", + "postinstall": "sass-migrator division node_modules/spectre.css/src/*.scss" }, "engines": { "node": ">=16" @@ -31,22 +32,23 @@ ] }, "dependencies": { - "npm-check-updates": "^16.14.15", - "tiddlywiki": "^5.3.3", - "tiddlywiki-plugin-dev": "^0.0.41", "@json-editor/json-editor": "2.14.1", "esbuild-sass-plugin": "^3.1.0", - "spectre.css": "^0.5.9" + "npm-check-updates": "^16.14.15", + "spectre.css": "^0.5.9", + "tiddlywiki": "^5.3.3", + "tiddlywiki-plugin-dev": "^0.0.41" }, "devDependencies": { - "eslint-config-tidgi": "1.2.2", - "dprint": "^0.45.0", "@modern-js/tsconfig": "^2.48.0", "@types/node": "^20.11.25", + "dprint": "^0.45.0", + "eslint-config-tidgi": "1.2.2", "husky": "^9.0.11", "lint-staged": "^15.2.2", "postcss": "^8.4.35", "rimraf": "^5.0.5", + "sass-migrator": "^2.0.2", "tw5-typed": "^0.5.1", "typescript": "^5.4.2" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 13dba31..24d0c7b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,6 +49,9 @@ devDependencies: rimraf: specifier: ^5.0.5 version: 5.0.5 + sass-migrator: + specifier: ^2.0.2 + version: 2.0.2 tw5-typed: specifier: ^0.5.1 version: 0.5.1 @@ -5426,6 +5429,12 @@ packages: sass-embedded-win32-x64: 1.71.1 dev: false + /sass-migrator@2.0.2: + resolution: {integrity: sha512-+uQjxYL+wuU9nw2IKnZk1hz8MlONp6yQPYb+fJLkekPjMUvNip1Sd2arZdPdhXwVzGFyrGq7AkskQohC2wc1kQ==} + engines: {node: '>=10.12.0'} + hasBin: true + dev: true + /sass@1.63.6: resolution: {integrity: sha512-MJuxGMHzaOW7ipp+1KdELtqKbfAWbH7OLIdoSMnVe3EXPMTmxTmlaZDCTsgIpPCs3w99lLo9/zDKkOrJuT5byw==} engines: {node: '>=14.0.0'}