Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change scss import path #2812

Merged
merged 3 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { copy } from 'fs-extra'
import { deleteAsync } from 'del'
import { fileURLToPath } from 'url'
import { execSync } from 'child_process'
import { readFile, access, writeFile, mkdir, appendFile } from 'fs/promises'
import { readFile, access, writeFile, mkdir } from 'fs/promises'
import { dirname, join, basename, extname, resolve, relative } from 'path'
import j from 'jscodeshift'
import { readFileSync } from 'fs'
Expand Down
1 change: 0 additions & 1 deletion scripts/demo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
var nameLc = 'test'
var demoModel = function (name) {
var temp = {
demo: `import React from 'react'
Expand Down
1 change: 0 additions & 1 deletion scripts/harmony/clone-jdharmony.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const fs = require('fs')
const fse = require('fs-extra')
const args = process.argv.splice(2)

const home = os.homedir()
const temp = `${process.cwd()}/packages`

console.log('args', args)
Expand Down
2 changes: 0 additions & 2 deletions scripts/rn/copy-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
* RN 自动化适配脚本
*/
const fse = require('fs-extra')
const path = require('path')
const config = require('../../src/config.json')

const args = process.argv.splice(2)

console.log('rn copy-file.js args',args)
Expand Down
3 changes: 0 additions & 3 deletions scripts/taro/replace-taro-types-alias.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const vfs = require('vinyl-fs')
const map = require('map-stream')
const fs = require('fs-extra')
const exportPropsTypes = require('../export-props')
const package = require('../../package.json')
const dest_docs = './dist/types'

vfs
Expand All @@ -12,7 +11,6 @@ vfs
map((file, cb) => {
const contents = file.contents
.toString()
// .replaceAll('@/packages', `.`)
.replace(/^@\/packages/g, `.`)
.replace(/import\s(.*)?\.scss\'\;[\t\n]/g, '')
file.contents = Buffer.from(contents, 'utf8')
Expand All @@ -30,7 +28,6 @@ vfs
map((file, cb) => {
const contents = file.contents
.toString()
// .replaceAll('@/packages', `..`)
.replace(/^@\/packages/g, `..`)
file.contents = Buffer.from(contents, 'utf8')
cb(null, file)
Expand Down
2 changes: 0 additions & 2 deletions scripts/update-v2.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const fse = require('fs-extra')

const fs = require('fs')
const path = require('path')
const config = require('../src/config.json')
Expand Down
2 changes: 1 addition & 1 deletion src/packages/overlay/demo.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import Taro from '@tarojs/taro'
import { View } from '@tarojs/components'
import { useTranslate } from '@/sites/assets/locale/taro'
import '@/packages/overlay/demo.scss'
import './demo.scss'
import Header from '@/sites/components/header'
import Demo2 from './demos/taro/demo2'
import Demo3 from './demos/taro/demo3'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/skeleton/demo.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import Taro from '@tarojs/taro'
import { ScrollView, View } from '@tarojs/components'
import { Cell } from '@nutui/nutui-react-taro'
import '@/packages/skeleton/demo.scss'
import './demo.scss'
import { useTranslate } from '@/sites/assets/locale/taro'
import Header from '@/sites/components/header'
import Demo1 from './demos/taro/demo1'
Expand Down
Loading