xpine 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -196,6 +196,20 @@ var config = {
196
196
  ...userConfig
197
197
  };
198
198
 
199
+ // src/util/postcss/remove-layers.ts
200
+ var plugin = (opts = {}) => {
201
+ return {
202
+ postcssPlugin: "postcssRemoveLayers",
203
+ AtRule: {
204
+ layer: (atRule) => {
205
+ atRule.replaceWith(atRule.nodes);
206
+ }
207
+ }
208
+ };
209
+ };
210
+ plugin.postcss = true;
211
+ var remove_layers_default = plugin;
212
+
199
213
  // src/scripts/build.ts
200
214
  var extensions = [".ts", ".tsx"];
201
215
  var packageJson = JSON.parse(fs2.readFileSync(config.packageJsonPath, "utf-8"));
@@ -388,7 +402,7 @@ async function buildCSS() {
388
402
  const cssFiles = globSync(config.srcDir + "/**/*.css");
389
403
  for (const file of cssFiles) {
390
404
  const fileContents = fs2.readFileSync(file, "utf-8");
391
- const result = await postcss([tailwindPostcss()]).process(fileContents, { from: file });
405
+ const result = await postcss([tailwindPostcss(), remove_layers_default()]).process(fileContents, { from: file });
392
406
  const newPath = file.replace(config.srcDir, config.distDir);
393
407
  fs2.ensureFileSync(newPath);
394
408
  fs2.writeFileSync(newPath, result.css);
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/scripts/build.ts"],"names":[],"mappings":"AAyBA,wBAAsB,QAAQ,CAAC,KAAK,UAAQ,iBAa3C;AA4LD,wBAAsB,QAAQ,kBAW7B;AAGD,wBAAsB,yBAAyB,kBAgB9C;AAOD,wBAAsB,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,KAAK,EAAE,eAAe,WAAkB,iBAahH"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/scripts/build.ts"],"names":[],"mappings":"AA0BA,wBAAsB,QAAQ,CAAC,KAAK,UAAQ,iBAa3C;AA4LD,wBAAsB,QAAQ,kBAW7B;AAGD,wBAAsB,yBAAyB,kBAgB9C;AAOD,wBAAsB,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,KAAK,EAAE,eAAe,WAAkB,iBAahH"}
@@ -191,6 +191,20 @@ var config = {
191
191
  ...userConfig
192
192
  };
193
193
 
194
+ // src/util/postcss/remove-layers.ts
195
+ var plugin = (opts = {}) => {
196
+ return {
197
+ postcssPlugin: "postcssRemoveLayers",
198
+ AtRule: {
199
+ layer: (atRule) => {
200
+ atRule.replaceWith(atRule.nodes);
201
+ }
202
+ }
203
+ };
204
+ };
205
+ plugin.postcss = true;
206
+ var remove_layers_default = plugin;
207
+
194
208
  // src/scripts/build.ts
195
209
  var extensions = [".ts", ".tsx"];
196
210
  var packageJson = JSON.parse(fs2.readFileSync(config.packageJsonPath, "utf-8"));
@@ -383,7 +397,7 @@ async function buildCSS() {
383
397
  const cssFiles = globSync(config.srcDir + "/**/*.css");
384
398
  for (const file of cssFiles) {
385
399
  const fileContents = fs2.readFileSync(file, "utf-8");
386
- const result = await postcss([tailwindPostcss()]).process(fileContents, { from: file });
400
+ const result = await postcss([tailwindPostcss(), remove_layers_default()]).process(fileContents, { from: file });
387
401
  const newPath = file.replace(config.srcDir, config.distDir);
388
402
  fs2.ensureFileSync(newPath);
389
403
  fs2.writeFileSync(newPath, result.css);
@@ -198,6 +198,20 @@ var config = {
198
198
  ...userConfig
199
199
  };
200
200
 
201
+ // src/util/postcss/remove-layers.ts
202
+ var plugin = (opts = {}) => {
203
+ return {
204
+ postcssPlugin: "postcssRemoveLayers",
205
+ AtRule: {
206
+ layer: (atRule) => {
207
+ atRule.replaceWith(atRule.nodes);
208
+ }
209
+ }
210
+ };
211
+ };
212
+ plugin.postcss = true;
213
+ var remove_layers_default = plugin;
214
+
201
215
  // src/scripts/build.ts
202
216
  var extensions = [".ts", ".tsx"];
203
217
  var packageJson = JSON.parse(fs2.readFileSync(config.packageJsonPath, "utf-8"));
@@ -390,7 +404,7 @@ async function buildCSS() {
390
404
  const cssFiles = globSync(config.srcDir + "/**/*.css");
391
405
  for (const file of cssFiles) {
392
406
  const fileContents = fs2.readFileSync(file, "utf-8");
393
- const result = await postcss([tailwindPostcss()]).process(fileContents, { from: file });
407
+ const result = await postcss([tailwindPostcss(), remove_layers_default()]).process(fileContents, { from: file });
394
408
  const newPath = file.replace(config.srcDir, config.distDir);
395
409
  fs2.ensureFileSync(newPath);
396
410
  fs2.writeFileSync(newPath, result.css);
@@ -0,0 +1,8 @@
1
+ import { PluginCreator } from "postcss";
2
+ declare namespace plugin {
3
+ interface Options {
4
+ }
5
+ }
6
+ declare const plugin: PluginCreator<plugin.Options>;
7
+ export default plugin;
8
+ //# sourceMappingURL=remove-layers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-layers.d.ts","sourceRoot":"","sources":["../../../../src/util/postcss/remove-layers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,kBAAU,MAAM,CAAC;IACf,UAAiB,OAAO;KAEvB;CACF;AAID,QAAA,MAAM,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,OAAO,CASxC,CAAC;AAGH,eAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xpine",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "main": "dist/index.js",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-secrets-manager": "^3.758.0",