Skip to content

Commit

Permalink
fix: presets export
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Dec 21, 2021
1 parent 84bddb7 commit 238244a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ dist
.nyc_output
.pnpm*
coverage

# built files
index.js
presets.js
index.d.ts
presets.d.ts
properties.d.ts
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
"name": "hypostyle",
"version": "3.2.1",
"description": "Minimalist 5th Generation CSS-in-JS built for concision and extension. Fast af, powered by nano-css.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"prepare": "is-ci || pnpx husky install",
"test": "c8 node -r esbuild-register lib/__tests__/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const pkg = require('../package.json')

require('esbuild').buildSync({
entryPoints: ['lib/index.ts', 'lib/presets.ts'],
outdir: path.join(__dirname, '../dist'),
outdir: path.join(__dirname, '../'),
bundle: true,
minify: true,
platform: 'node',
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"lib": ["ES5", "dom"],
"target": "ES5",
"declaration": true,
"declarationDir": "./dist"
"declarationDir": "./"
}
}

0 comments on commit 238244a

Please sign in to comment.