Skip to content

Commit 2ea5320

Browse files
authored
Prepare index.js as the new entry point
This somewhat restores the module's public API to that before 91e5e73, by adding back the propertyDescriptors export. However, it is now a Map instead of an object, so it remains a breaking change.
1 parent 4e621fd commit 2ea5320

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

lib/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"use strict";
2+
3+
const { CSSStyleDeclaration } = require("./CSSStyleDeclaration");
4+
const propertyDefinitions = require("./generated/propertyDefinitions");
5+
6+
module.exports = {
7+
CSSStyleDeclaration,
8+
propertyDefinitions
9+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"files": [
1515
"lib/"
1616
],
17-
"main": "./lib/CSSStyleDeclaration.js",
17+
"main": "./lib/index.js",
1818
"dependencies": {
1919
"@asamuzakjp/css-color": "^4.1.1",
2020
"@csstools/css-syntax-patches-for-csstree": "^1.0.24",

0 commit comments

Comments
 (0)