Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default function inlineAliasValues( {
outputFile(
filename,
[
'/**',
'/*',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This

' * This file is generated by the @wordpress/terrazzo-plugin-inline-alias-values plugin.',
' * Do not edit this file directly.',
' */',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function pluginKnownWpdsCssVariables( {
filename = 'design-tokens.js',
} = {} ): Plugin {
return {
name: '@terrazzo/plugin-known-wpds-css-variables',
name: '@wordpress/terrazzo-plugin-known-wpds-css-variables',
async build( { getTransforms, outputFile } ) {
// Either a string (modes=false) or an object (modes=true)
const tokensToExport: Record<
Expand All @@ -34,8 +34,8 @@ export default function pluginKnownWpdsCssVariables( {
outputFile(
filename,
[
'/**',
' * This file is generated by the @terrazzo/plugin-known-wpds-css-variables plugin.',
'/*',
' * This file is generated by the @wordpress/terrazzo-plugin-known-wpds-css-variables plugin.',
' * Do not edit this file directly.',
' */',
'',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function typescriptTypes( {
},
async build( { outputFile } ) {
const outputLines = [
'/**',
'/*',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This

' * This file is generated by the @wordpress/terrazzo-plugin-typescript-types plugin.',
' * Do not edit this file directly.',
' */',
Expand Down
18 changes: 15 additions & 3 deletions packages/theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,21 @@
"default": "./build/index.cjs"
},
"./design-tokens.css": "./src/prebuilt/css/design-tokens.css",
"./design-tokens.js": "./src/prebuilt/js/design-tokens.js",
"./stylelint-plugins/no-unknown-ds-tokens": "./src/stylelint-plugins/no-unknown-ds-tokens.js",
"./stylelint-plugins/no-setting-wpds-custom-properties": "./src/stylelint-plugins/no-setting-wpds-custom-properties.js",
"./design-tokens.js": {
"types": "./build-types/prebuilt/js/design-tokens.d.ts",
"import": "./build-module/prebuilt/js/design-tokens.js",
"default": "./build/prebuilt/js/design-tokens.cjs"
},
"./stylelint-plugins/no-unknown-ds-tokens": {
"types": "./build-types/stylelint-plugins/no-unknown-ds-tokens.d.ts",
"import": "./src/stylelint-plugins/no-unknown-ds-tokens.js",
"default": "./build/stylelint-plugins/no-unknown-ds-tokens.cjs"
},
"./stylelint-plugins/no-setting-wpds-custom-properties": {
"types": "./build-types/stylelint-plugins/no-setting-wpds-custom-properties.d.ts",
"import": "./src/stylelint-plugins/no-setting-wpds-custom-properties.js",
"default": "./build/stylelint-plugins/no-setting-wpds-custom-properties.cjs"
},
"./package.json": "./package.json"
},
"react-native": "src/index",
Expand Down
4 changes: 2 additions & 2 deletions packages/theme/src/prebuilt/js/design-tokens.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* This file is generated by the @terrazzo/plugin-known-wpds-css-variables plugin.
/*
* This file is generated by the @wordpress/terrazzo-plugin-known-wpds-css-variables plugin.
* Do not edit this file directly.
*/

Expand Down
2 changes: 1 addition & 1 deletion packages/theme/src/prebuilt/ts/color-tokens.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This

* This file is generated by the @wordpress/terrazzo-plugin-inline-alias-values plugin.
* Do not edit this file directly.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/src/prebuilt/ts/token-types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This

* This file is generated by the @wordpress/terrazzo-plugin-typescript-types plugin.
* Do not edit this file directly.
*/
Expand Down
Loading