Skip to content

Commit 5254f3a

Browse files
committed
chore: update plop templates
1 parent adf9113 commit 5254f3a

13 files changed

+21
-11
lines changed

plop-templates/plopfile.hbs

-1
This file was deleted.
File renamed without changes.

plop-templates/machine-template/package.json.hbs plop/machine/package.json.hbs

+10-6
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,20 @@
1111
"module": "dist/index.mjs",
1212
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/{{machine}}",
1313
"sideEffects": false,
14-
"files": [
15-
"dist"
16-
],
14+
"files": ["dist/**/*"],
15+
"scripts": {
16+
"build:fast": "yarn zag build",
17+
start: "yarn zag build --watch",
18+
build: "yarn zag build --prod",
19+
test: "jest --config ../../jest.config.js --rootDir tests",
20+
lint: "eslint src --ext .ts,.tsx",
21+
"test:ci": "yarn test --ci --runInBand --updateSnapshot",
22+
"test:watch": "yarn test --watch",
23+
},
1724
"publishConfig": {
1825
"access": "public"
1926
},
2027
"bugs": {
2128
"url": "https://github.com/chakra-ui/zag/issues"
22-
},
23-
"scripts": {
24-
"build": "tsc src/index.ts --declaration --emitDeclarationOnly --target es2018 --outDir dist --skipLibCheck --moduleResolution node --strict false"
2529
}
2630
}
File renamed without changes.

plop-templates/machine-template/src/{{machine}}.connect.ts.hbs plop/machine/src/{{machine}}.connect.ts.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function {{capitalize machine}}connect<T extends PropTypes = ReactPropTyp
1010
) {
1111
const { context: ctx } = state
1212
return {
13-
elProps: normalize.element<T>({
13+
rootProps: normalize.element<T>({
1414
}),
1515
}
1616
}
File renamed without changes.

plop-templates/util-template/package.json.hbs plop/utility/package.json.hbs

+10-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@
1111
"types": "dist/index.d.ts",
1212
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/utilities/{{packageName}}",
1313
"sideEffects": false,
14-
"files": [
15-
"dist"
16-
],
14+
"files": ["dist/**/*"],
15+
"scripts": {
16+
"build:fast": "yarn zag build",
17+
start: "yarn zag build --watch",
18+
build: "yarn zag build --prod",
19+
test: "jest --config ../../../jest.config.js --rootDir tests",
20+
lint: "eslint src --ext .ts,.tsx",
21+
"test:ci": "yarn test --ci --runInBand --updateSnapshot",
22+
"test:watch": "yarn test --watchAll",
23+
},
1724
"publishConfig": {
1825
"access": "public"
1926
},
File renamed without changes.

plop/utility/tests/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)