mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Saga-icons: Switch to ESM (#84875)
This commit is contained in:
parent
b4ed72f1b6
commit
0f6858709b
@ -44,9 +44,9 @@ plugins:
|
|||||||
|
|
||||||
yarnPath: .yarn/releases/yarn-4.1.0.cjs
|
yarnPath: .yarn/releases/yarn-4.1.0.cjs
|
||||||
# Uncomment the following lines if you want to use Verdaccio local npm registry. Read more at packages/README.md
|
# Uncomment the following lines if you want to use Verdaccio local npm registry. Read more at packages/README.md
|
||||||
# npmScopes:
|
#npmScopes:
|
||||||
# grafana:
|
# grafana:
|
||||||
# npmRegistryServer: http://localhost:4873
|
# npmRegistryServer: http://localhost:4873
|
||||||
|
#
|
||||||
# unsafeHttpWhitelist:
|
#unsafeHttpWhitelist:
|
||||||
# - 'localhost'
|
# - 'localhost'
|
||||||
|
@ -6,8 +6,8 @@ module.exports = {
|
|||||||
typescript: true,
|
typescript: true,
|
||||||
jsxRuntime: 'automatic',
|
jsxRuntime: 'automatic',
|
||||||
outDir: './src/icons-gen',
|
outDir: './src/icons-gen',
|
||||||
template: require('./templates/icon'),
|
template: require('./templates/icon.cjs'),
|
||||||
indexTemplate: require('./templates/index'),
|
indexTemplate: require('./templates/index.cjs'),
|
||||||
memo: true,
|
memo: true,
|
||||||
svgoConfig: {
|
svgoConfig: {
|
||||||
plugins: [
|
plugins: [
|
@ -11,11 +11,11 @@
|
|||||||
"url": "https://github.com/grafana/grafana.git",
|
"url": "https://github.com/grafana/grafana.git",
|
||||||
"directory": "packages/grafana-icons"
|
"directory": "packages/grafana-icons"
|
||||||
},
|
},
|
||||||
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"types": "src/index.ts",
|
"types": "src/index.ts",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "dist/index.js",
|
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
@ -27,7 +27,7 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf ./dist ./compiled ./package.tgz ./src/icons-gen",
|
"clean": "rimraf ./dist ./compiled ./package.tgz ./src/icons-gen",
|
||||||
"generate": "yarn clean && npx @svgr/cli ./svg && mv ./src/icons-gen/index.ts ./src",
|
"generate": "yarn clean && npx @svgr/cli ./svg --silent && mv ./src/icons-gen/index.ts ./src",
|
||||||
"typecheck": "tsc --emitDeclarationOnly false --noEmit",
|
"typecheck": "tsc --emitDeclarationOnly false --noEmit",
|
||||||
"lint": "eslint --ext .ts,.tsx ./src",
|
"lint": "eslint --ext .ts,.tsx ./src",
|
||||||
"prettier:check": "prettier --check --list-different=false --log-level=warn \"**/*.{ts,tsx,scss,md,mdx,json}\"",
|
"prettier:check": "prettier --check --list-different=false --log-level=warn \"**/*.{ts,tsx,scss,md,mdx,json}\"",
|
||||||
|
Loading…
Reference in New Issue
Block a user